spring-boot/spring-boot-samples/spring-boot-sample-quartz
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
..

== Spring Boot Quartz Sample

This sample demonstrates the Quartz auto-configuration support.

The sample uses Maven. It can be built and run from the command line:

----
$ mvn spring-boot:run
----

Console log will now show "Hello World!" from `SampleJob` every 2 seconds.