-
[郑州|荣耀师兄]JAVA-周宏浩0
可以在web.xml里加入编码格式过滤器就试试。
<!--编码格式过滤器-->
<!-- Character Encoding filter -->
<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>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
编辑于2018-11-09 -
[北京|结业弟子]JAVA-王子平0编辑于2019-03-28
- 去第 页