<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" /> <property name="ignoreResourceNotFound" value="false" /> <property name="locations"> <list> <value>classpath*:jdbc.properties</value> <value>classpath*:upload.properties</value> <value>classpath*:charts.properties</value> </list> </property> <!-- 可注入中文 --> <property name="fileEncoding" value="UTF-8"/> </bean>
<property name="fileEncoding" value="UTF-8"/>
可以使得properties注入中文
这个配置在springside中是没有的