Spring读取配置文件

<context:property-placeholder location="classpath:config.properties" /> 
<!-- 这种写法可能读不到第二个配置文件,见下面的解决方法 -->

通配符可以扫描多个配置文件(读取所有配置文件)

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

原文地址:https://www.cnblogs.com/zaixiuxing/p/5159424.html