Files
spring-boot/spring-boot-samples/spring-boot-sample-quartz/src/main/resources/application.properties
Vedran Pavic db060c847d Ensure QuartzDatabaseInitializer is initialized before Scheduler
If the auto-configured `Scheduler` instance backed by JDBC job store is
used as a dependency in an application component, the initialization of
`Scheduler` will be triggered before `QuartzDatabaseInitializer`. This
will result in failure due to schema not being prepared in time for
`Scheduler` to populate job details.

This commit ensures `QuartzDatabaseInitializer` is initialized before the
auto-configured `Scheduler` by introducing a dependency between the two.

See gh-9411
2017-06-06 10:14:49 +02:00

3 lines
76 B
INI

spring.quartz.job-store-type=jdbc
spring.quartz.jdbc.initialize-schema=true