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

你可能感兴趣的:(Spring 3 - Quartz - 集成)