private Properties loadConfigLocationProperties(ApplicationContext applicationContext,
QuartzSchedulerProperties properties) throws IOException {
String location = properties.getPropertiesConfigLocation();
if(null == location || location.trim().length() == 0) {
location = QuartzSchedulerProperties.DEFAULT_CONFIG_LOCATION;
LOGGER.debug("using default 'quartz.properties' from classpath: " + location);
} else {
LOGGER.debug("using 'quartz.properties' from location: " + location);
}
PropertiesFactoryBean propertiesFactoryBean = new PropertiesFactoryBean();
propertiesFactoryBean.setLocation(applicationContext.getResource(location));
propertiesFactoryBean.afterPropertiesSet();
return propertiesFactoryBean.getObject();
}
QuartzSchedulerAutoConfiguration.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:spring-boot-starter-quartz
作者:
评论列表
文章目录