quartz创建定时任务失败,导致项目无法启动

quartz创建定时任务失败,导致项目无法启动

报错如下,导致项目不能正常启动:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‘scheduleJobController’:
Unsatisfied dependency expressed through field ‘scheduleJobService’;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name ‘scheduleJobService’: Invocation of init method failed;
nested exception is com.base.common.exception.RRException: 创建定时任务失败

解决方案

删除如下4个表的内容,重新启动
select * from qrtz_blob_triggers;
select * from qrtz_cron_triggers ;
select * from qrtz_triggers ;
select * from qrtz_job_details;

你可能感兴趣的:(quartz相关)