Spring 使用外部部署文件

1.导入属性文件:

<context:property-placeholder location="classpath:db.properties"/>

2.使用外部化属性文件的属性。

<property name="" value="${user}"></property>

posted @ 2015-06-28 16:26  null1019  阅读(144)  评论(0编辑  收藏  举报