在spring-mvc.xml中增加
<!-- 扫描所有properties文件 -->
<context:property-placeholder ignore-unresolvable="true" location="classpath:*.properties" />
<!-- 扫描所有properties文件 -->
<context:property-placeholder ignore-unresolvable="true" location="classpath:*.properties" />