配置文件<bean name="quartzScheduler"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean" autowire="no"> 已经把autowire设置为no但启动还是报org.springframework.context.ApplicationContextException: Failed to start bean 'quartzScheduler'; nested exception is org.springframework.scheduling.SchedulingException: Could not start Quartz Scheduler; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'XXXXX.qrtz_locks' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ynnskj.qrtz_locks' doesn't exist]]
Table 'XXXX.qrtz_locks' doesn't exist,需要先在 MySQL 数据库中创建表 XXXX.qrtz_locks ,至于表的定义如何,可以看看 Quartz 的文档。
已解决,谢谢
怎么解决 的