CloudUnitApplicationContext.java 文件源码

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

项目:devops-cstack 作者:
@Bean
@Profile("test")
public static PropertySourcesPlaceholderConfigurer propertiesForTest()
        throws Exception {
    PropertySourcesPlaceholderConfigurer pspc =
            new PropertySourcesPlaceholderConfigurer();
    Resource[] resources = new Resource[]
            {new ClassPathResource("application-test.properties")};
    pspc.setLocations(resources);
    pspc.setIgnoreUnresolvablePlaceholders(true);
    pspc.setLocalOverride(true);
    return pspc;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号