通过添加fileEncoding=utf-8
属性可以解决上述问题:
<bean id="propertyConifgurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="location"> <value>classpath:evn.properties</value> </property> <property name="fileEncoding"> <value>utf-8</value> </property> </bean>