pom.xml中相关dependency信息
org.springframework
spring-context
3.1.1.RELEASE
org.springframework
spring-context-support
3.1.1.RELEASE
org.springframework
spring-tx
3.1.1.RELEASE
org.springframework
spring-web
3.0.5.RELEASE
org.quartz-scheduler
quartz
1.8.5
quartzJob.xml
execute
DailyTaskJob.java
package com.test.quartz;
public class DailyTaskJob {
protected void execute() {
//执行任务
}
}
最后在web.xml中添加quartzJob.xml
contextConfigLocation
WEB-INF/beans.xml
WEB-INF/quartz/quartzJob.xml
OK,这就配好啦,记录一下,防止以后忘了。