Alex_TD

Springmvc----处理乱码过滤器CharcterEncodingFilter

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”/>
我不知道遇到了啥/?

 前端字符串直接返回给前端

posted on 2020-02-23 12:57  Alex_TD  阅读(269)  评论(0编辑  收藏  举报