Spring乱码配置

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>

 

posted @ 2020-10-18 23:35  黑质白章  阅读(85)  评论(0编辑  收藏  举报