<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>

  </filter>

  <filter-mapping>

      <filter-name>encodingFilter</filter-name>

      <url-pattern>/*</url-pattern>

  </filter-mapping>

posted on 2019-09-03 21:59  kfsrex  阅读(415)  评论(0编辑  收藏  举报