配置文件
# clean non-active user
cron.net.wendal.nutzbook.quartz.CleanNonActiveUserJob=0/3 * * * * ?
cron.pkgs=net.wendal.nutzbook.quartz
job
package net.wendal.nutzbook.quartz;
import org.nutz.ioc.loader.annotation.IocBean;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
@IocBean
public class CleanNonActiveUserJob implements Job{
@Override
public void execute(JobExecutionContext cont) throws JobExecutionException {
System.out.println("执行了任务");
}
}
启动tomcat之后并没有执行这句话,哪里出问题了呢