spring location设置本地路径

<context:property-placeholder location="file:D:/jdbc.properties"/>

直接在路径前加上 file:

原文地址:https://www.cnblogs.com/lishuaiqi/p/10297543.html