post中文编码配置文件怎么写
1,Web.xml 复制一个过滤器
<filter> <filter-name>CharacterEncodingFilter</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>CharacterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
本文链接:https://www.kkkliao.cn/?id=256 转载需授权!
版权声明:本文由廖万里的博客发布,如需转载请注明出处。