Migrating from Spring 3 to Spring 4 - org.springframework.scheduling.quartz.CronTriggerBean

后端 未结 2 406
轻奢々
轻奢々 2021-01-07 16:58

I\'m trying to migrate from spring 3.0.5 to spring 4.1.X .

Spring 3 has Class named as \"org.springframework.scheduling.quartz.CronTriggerBean\"

But Spring 4

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-07 17:18

    From Spring 3.1+, Change the Class names for the CronTriggerFactoryBean & JobDetailFactoryBean as like below

       org.springframework.scheduling.quartz.CronTriggerBean 
                                   org.springframework.scheduling.quartz.CronTriggerFactoryBean
       org.springframework.scheduling.quartz.JobDetailBean
                                   org.springframework.scheduling.quartz.JobDetailFactoryBean
    

    So your steps are:

    Change

    CronTriggerBean to CronTriggerFactoryBean
    JobDetailBean to JobDetailFactoryBean

提交回复
热议问题