MainJob.java
1package jobs;23import org.apache.log4j.Logger;4import org.quartz.JobExecutionContext;5import org.quartz.JobExecutionException;6import org.springframework.scheduling.quartz.QuartzJobBean;78public class MainJob extends QuartzJobBean {9 private Logger logger = Logger.getLogger(getClass());10 @Override11 protected void executeInternal(JobExecutionContext context)12 throws JobExecutionException {13 // TODO Auto-generated method stub14 logger.debug("Just say hi.");15 }1617} 18
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索quartz
, import
, spring+quartz
, spring任务调度
Logger
quartz triggerjob、quartz job trigger、spring job quartz、quartz spring动态job、quartz trigger,以便于您获取更多的相关知识。
时间: 2024-09-14 04:57:23