标签:enc value pat lte 配置 init 信息 cee 乱码问题
将下面配置信息配置在webapp/WEB-INF/web.xml中
<!-- 解决post乱码 -->
<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>
标签:enc value pat lte 配置 init 信息 cee 乱码问题
原文地址:https://www.cnblogs.com/xuan-cz/p/10137925.html