Improve documentation of Quartz DataSource customization

Closes gh-12780
This commit is contained in:
Andy Wilkinson
2018-10-09 15:05:25 +01:00
parent 33e0b12d46
commit c6fdb4f0f2
3 changed files with 15 additions and 1 deletions

View File

@@ -5979,6 +5979,11 @@ NOTE: By default, the database is detected and initialized by using the standard
provided with the Quartz library. It is also possible to provide a custom script by
setting the `spring.quartz.jdbc.schema` property.
To have Quartz use a `DataSource` other than the application's main `DataSource`, declare
a `DataSource` bean, annotating its `@Bean` method with `@QuartzDataSource`. Doing so
ensures that the Quartz-specific `DataSource` is used by both the `SchedulerFactoryBean`
and for schema initialization.
Quartz Scheduler configuration can be customized by using Quartz configuration properties
()`spring.quartz.properties.*`) and `SchedulerFactoryBeanCustomizer` beans, which allow
programmatic `SchedulerFactoryBean` customization.