spring 引入文件

<!-- 导入外部的资源文件 -->
 <context:property-placeholder location="classpath:db.properties"/>

原文地址:https://www.cnblogs.com/lxh520/p/8885494.html