spring使用XML的形式读取properties配置文件的内容
在spring配置文件中加入一个bean
其中location属性为properties配置文件名称(需要放在/src/main/resources路径下)
fileEncoding属性为properties文件的编码格式
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&...
原创
2019-01-07 16:24:54 ·
221 阅读 ·
0 评论