2012年8月5日

spring中PropertyPlaceholderConfigurer作用

摘要: 在Spring中,使用PropertyPlaceholderConfigurer可以在XML配置文件中加入外部属性文件,例如:Java代码<beanid="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <propertyname="location"value="classpath:config/jdoserver.properties"/> 阅读全文

posted @ 2012-08-05 00:56 站在云端 阅读(605) 评论(0) 推荐(0) 编辑

导航