设为首页 加入收藏

TOP

通过maven添加Quartz
2014-11-24 01:40:34 来源: 作者: 【 】 浏览:0
Tags:通过 maven 添加 Quartz

通过maven添加Quartz


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,这就配好啦,记录一下,防止以后忘了。


推荐阅读


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇maven构建使用Spring执行定时任务 下一篇Linux内核外部驱动模块编译报错ER..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: