使用spring框架自带的字符拦截器
2020-12-26 22:29
标签:url ini 框架 bsp class code filter value -- 1、只需在web.xml中配置即可 使用spring框架自带的字符拦截器 标签:url ini 框架 bsp class code filter value -- 原文地址:https://www.cnblogs.com/shouyaya/p/13034668.html filter>
filter-name>encodingFilterfilter-name>
filter-class>org.springframework.web.filter.CharacterEncodingFilterfilter-class>
init-param>
param-name>encodingparam-name>
param-value>UTF-8param-value>
init-param>
init-param>
param-name>forceEncodingparam-name>
param-value>trueparam-value>
init-param>
filter>
filter-mapping>
filter-name>encodingFilterfilter-name>
url-pattern>/*url-pattern>
filter-mapping>