Spring加载Properties配置文件的几种常用方式
一、通过 context:property-placeholder 标签实现配置文件加载
使用方式:
1.在applicationContext.xml(spring配置文件)中加入
<context:property-placeholder ignore-unresolvable="true" location="classpath:db.properties"/>
属性含义
1)...
原创
2020-04-15 18:29:24 ·
908 阅读 ·
0 评论