When we fix this, we should be able to replace QuartzSchedulerDependencyConfiguration with a DependsOnDatabaseInitializationDetector for Scheduler and SchedulerFactoryBean. We may want to see if we can somehow make it specific to the JDBC store type.

Comment From: wilkinsona

Slight change of plan. Let's close this in favour of #27215 and then use some separate issues to make the relevant Batch, Session JDBC, and Quartz beans depend on data source initialization.