Spring项目读取外部配置文件
在读取配置文件路径的地方改为绝对路径
<!-- 数据库连接池对象 -->
<!--<context:property-placeholder location="classpath:db.properties"></context:property-placeholder>-->
<!--更换为数据库外部配置文件-->
<context:property-placeholder location="file:C:\config\db.properties"></context:property-placeholder>