1、spring.xml中加入(多个properties 用逗号隔开) <context:property-placeholder location="classpath:jdbc.properties,classpath:config.properties" />
2、spring-mvc.xml 中加入(只加上面一句controller中读取不到值) <context:property-placeholder location="classpath:config.properties" />