/**
* Load the properties files used in application contexts here
*
* @return the initialized instance of the PropertyPlaceholderConfigurer class
*/
@Bean(name="properties")
@Scope(BeanDefinition.SCOPE_SINGLETON)
public PropertyPlaceholderConfigurer conversionService() {
PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer();
Resource resource1 = new ClassPathResource("application_file_1.properties");
Resource resource2 = new ClassPathResource("application_file_2.properties");
configurer.setLocations(resource1, resource2);
return configurer;
}
PropertyPlaceholderConfig.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:jaffa-framework
作者:
评论列表
文章目录