本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
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>


阅读全文(7617) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.268 second(s), page refreshed 144763816 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号