一. spring 相关的坑
1. <context:property-placeholder location="classpath:db.properties" /> 只能配置一个,如何配置多个,后面的properties会被spring 忽略。
正确的做法是:
<context:property-placeholder location="classpath:*.properties" />用* 代替所以配置文件。
一. spring 相关的坑
1. <context:property-placeholder location="classpath:db.properties" /> 只能配置一个,如何配置多个,后面的properties会被spring 忽略。
正确的做法是:
<context:property-placeholder location="classpath:*.properties" />用* 代替所以配置文件。