For those who use Spring + Quartz and quartz.properties file does not work (i.e., is ignored when the application starts):
The Quartz Scheduler ( org.quartz.Scheduler ) created by the Spring Factory Bean ( org.springframework.scheduling.quartz.SchedulerFactoryBean ) will not read the quartz.properties file from the default class path, as stated in the Quartz docs - you need to set the link manually:
[in case of Java configuration]:
@Bean public SchedulerFactoryBean schedulerFactoryBean() { SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean(); schedulerFactoryBean.setConfigLocation(new ClassPathResource("quartz.properties"));
[in case of XML configuration]:
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="configLocation" value="classpath:quartz.properties" />
source share