Spring框架利用PropertyPlaceholderConfigurer初始化加载多properties文件
一:首先创建一个属性文件xxx.properties
二:然后自定义一个属性加载类工具类,必须要extends PropertyPlaceholderConfigurer类,(实际是对PropertyPlaceholderConfigurer类的一个扩展)
public class CustomizedPropertyConfigurer extends PropertyPlacehol...
原创
2018-12-28 14:41:50 ·
1216 阅读 ·
0 评论