标签:har cee pre highlight work 乱码 mapping get rac
SpringMVC框架中有提供解决get、post请求中文乱码的类,只需要在web.xml文件中配置该过滤器即可。
<filter> <filter-name>CharacterEncodingFilter</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> <filter-mapping> <filter-name>CharacterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
标签:har cee pre highlight work 乱码 mapping get rac
原文地址:http://www.cnblogs.com/snow1234/p/7616007.html