乱码解决

<filter>
    <filter-name>CharactorEncodingFilter</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>
private String encoding;
private boolean forceRequestEncoding;
private boolean forceResponseEncoding;

posted on 2017-08-20 09:23  溜氓  阅读(187)  评论(0编辑  收藏  举报

导航