« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9695763 建立时间:2004年12月20日 |

| |
[java语言]spring技术手册阅读笔记(六) PropertyPlaceholderConfigurer的使用 原创空间, 软件技术, 电脑与网络
邢红瑞 发表于 2006/11/10 13:57:45 |
为了防止设置properties被覆盖掉,设置ignoreUnresolvablePlaceholders为true<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="/WEB-INF/classes/application.properties"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
<bean id="propertyConfigurer2" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:f:\p\pass.properties"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean> |
|
|