标签: quartz-persistence

SchedulerFactory 是否能够在启动时为quartz 创建表?

我正在尝试使用 Spring Boot 运行集成测试并收到以下错误:

Caused by: org.springframework.context.ApplicationContextException:
Failed to start bean 'SchedulerFactory'; 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 "QRTZ_LOCKS" not found; SQL statement:
SELECT * FROM QRTZ_LOCKS UPDLOCK WHERE LOCK_NAME = ? [42102-193] [See nested exception: org.h2.jdbc.JdbcSQLException: Table "QRTZ_LOCKS" not found; SQL statement:
SELECT * FROM QRTZ_LOCKS UPDLOCK WHERE LOCK_NAME = ? [42102-193]]]
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:176)
Run Code Online (Sandbox Code Playgroud)

很明显,QRTZ表没有创建。我 …

java spring quartz quartz-persistence

3
推荐指数
1
解决办法
6329
查看次数

标签 统计

java ×1

quartz ×1

quartz-persistence ×1

spring ×1