TestContextConfiguration3.java 文件源码

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

项目:spring-boot-starter-quartz 作者:
@Bean(name = QuartzSchedulerAutoConfiguration.QUARTZ_PROPERTIES_BEAN_NAME)
public Properties quartzProperties(
        @Autowired ApplicationContext applicationContext,
        @Autowired QuartzSchedulerProperties properties) throws IOException {

    System.out.println("my overridden quartz.properties loading");

    PropertiesFactoryBean propertiesFactoryBean = new PropertiesFactoryBean();
    propertiesFactoryBean.setLocation(applicationContext.getResource("classpath:overriddenQuartzScheduler.properties"));
    propertiesFactoryBean.afterPropertiesSet();
    return propertiesFactoryBean.getObject();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号