首页 新闻 会员 周边

spring 整合 quartz

0
[已解决问题] 解决于 2017-06-28 14:42

配置文件<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]]

KMException的主页 KMException | 菜鸟二级 | 园豆:208
提问于:2016-11-24 09:32
< >
分享
最佳答案
0

Table 'XXXX.qrtz_locks' doesn't exist,需要先在 MySQL 数据库中创建表 XXXX.qrtz_locks ,至于表的定义如何,可以看看 Quartz 的文档。

奖励园豆:5
吸氧羊与肥汰狼 | 菜鸟二级 |园豆:293 | 2016-11-25 10:59
其他回答(2)
0

已解决,谢谢

KMException | 园豆:208 (菜鸟二级) | 2017-06-28 14:41
1

怎么解决 的

路人使者 | 园豆:202 (菜鸟二级) | 2020-06-03 19:14
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册