Spring 使用外部部署文件

1.导入属性文件:

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

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

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

原文地址:https://www.cnblogs.com/fanminghui/p/4605724.html