Springmvc----处理乱码过滤器CharcterEncodingFilter : web.xml
<servlet-mapping> <servlet-name>mvc</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <filter> <filter-name>characterEncoding</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>
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8”/>
我不知道遇到了啥/?
前端字符串直接返回给前端
原文地址:https://www.cnblogs.com/chencn/p/12349292.html
时间: 2024-10-18 01:22:14