首页 > 代码库 > No setter found for property 'cronExpression' in class 'org.springframework.scheduling.quartz.CronTriggerBean'

No setter found for property 'cronExpression' in class 'org.springframework.scheduling.quartz.CronTriggerBean'

技术分享

 

今天想写个Spring集成Quartz的小Demo,结果报错cronExpression未定义,通过差错,原来是因为Spring 3.0.5与Quartz2.2.2不兼容,Spring3.1以下的只能与Quartz1.x 的版本相兼容。

解决办法:将quartz-2.2.2.jar换成 quartz-1.x的

No setter found for property 'cronExpression' in class 'org.springframework.scheduling.quartz.CronTriggerBean'