@Scheduled(cron = "0 0/2 * * * ?")
@IocBean(create = "init")
public class CrmCollectHoldTask implements Job{
public void init(){
}
}
这样处理后,还需要处理不?
4 回复
这个这个只是一个例子 ,
Scheduler meta-data: Quartz Scheduler (v2.3.0) 'NutzbootScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 8 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
添加回复
请先登陆