mirror of
https://github.com/fabioformosa/quartz-manager.git
synced 2026-05-14 22:00:30 +09:00
#40 customized the quartz.properties file for quartz-manager in managed-quartz.properties
This commit is contained in:
@@ -36,11 +36,11 @@ public class SchedulerConfig {
|
||||
return jobFactory;
|
||||
}
|
||||
|
||||
@ConditionalOnResource(resources = {"quartz.properties"})
|
||||
@ConditionalOnResource(resources = {"managed-quartz.properties"})
|
||||
@Bean
|
||||
public Properties quartzProperties() throws IOException {
|
||||
PropertiesFactoryBean propertiesFactoryBean = new PropertiesFactoryBean();
|
||||
propertiesFactoryBean.setLocation(new ClassPathResource("/quartz.properties"));
|
||||
propertiesFactoryBean.setLocation(new ClassPathResource("/managed-quartz.properties"));
|
||||
propertiesFactoryBean.afterPropertiesSet();
|
||||
return propertiesFactoryBean.getObject();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user