1.解決方法其中之一 在web.xml下添加配置: CharacterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 ... ...
1.解決方法其中之一
在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> </filter> <filter-mapping> <filter-name>CharacterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>