當前位置:編程學習大全網 - 網站源碼 - org.springframework.web.filter.characterencodingfilter在哪個jar

org.springframework.web.filter.characterencodingfilter在哪個jar

web.xml中配置

<!--?3.5*_*?filter:表單提交過濾器?-->

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

<init-param>

<param-name>ForceEncoding</param-name>

<param-value>true</param-value>

</init-param>

</filter>

<filter-mapping>

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

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

</filter-mapping>

需導入以下4個Jar包

spring-web-4.3.9.RELEASE.jar

spring-beans-4.3.9.RELEASE.jar

spring-context-4.3.9.RELEASE.jar

spring-core-4.3.9.RELEASE.jar

  • 上一篇:哢哩彈幕改成什麽了
  • 下一篇:java echarts
  • copyright 2024編程學習大全網