QuartzSchedulerAutoConfiguration.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:spring-boot-starter-quartz 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号