标签:url ini 框架 bsp class code filter value --
1、只需在web.xml中配置即可
<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><!--设置使用spring的字符拦截器--> <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>
标签:url ini 框架 bsp class code filter value --
原文地址:https://www.cnblogs.com/shouyaya/p/13034668.html