SpringMVC和前台XML数据绑定时,解析传递过来的中文数据出现了乱码,如何解决了,请教
SpringMVC和前台XML数据绑定时,对于传递过来的中文数据出现了乱码,如何解决了,请教
SpringMVC和前台XML数据绑定时,对于传递过来的中文数据出现了乱码,如何解决了,请教
2019-05-01
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
或者
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"/>
举报