Spring 3 - Quartz - 集成

用spring和quartz集成时,碰到不少小问题,解决过程如下:

集成时,先遇到异常:

    java.lang.ClassNotFoundException: org.springframework.transaction.TransactionException

根据提示,是缺少spring.transaction的依赖,注意,如果用maven 依赖:artifactId 为 spring-tx(烦 ,以为是 spring-transaction)


quartz 依赖包groupId=org.opensymphony.quartz ,artifactId=quartz,version=1.6.1(烦,其它情况可能遇到编译或者noMethod异常)



如果用cronTrigger,可能遇到

 Property 'cronExpression' threw exception; Support for specifying both a day-of-week AND a day-of-month parameter is not implemented. 

异常原因及解释:

http://blog.csdn.net/chh_jiang/article/details/4603529

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值