1.在springMVC中
<context:property-placeholder file-encoding="utf-8" location="classpath:install.properties"/>
<bean id="utf-8" class="java.lang.String" >
<constructor-arg value="utf-8" />
</bean>
要这样写不会报错,如果没u有‘tf-8’这个BEAN,会报‘utf-8’bean找不到。但我是从另外一个工程中一样COPY来的,另外工程不会报错。(待解决)