解决JSP表单数据到Controller中乱码问题

问题

解决JSP表单数据到Controller中乱码问题

 

 

解决JSP表单数据到Controller中乱码问题

 

 

 

 

web.xml添加配置

<!--解决JSP到Controller乱码-->
  <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>

 

 

解决JSP表单数据到Controller中乱码问题

 

上一篇:HDU 5536 Chip Factory (暴力+01字典树)


下一篇:Codeforces Round #738 (Div. 2)