web.xml解决全站乱码问题

 <filter>
        <filter-name>encoding</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>encoding</filter-name>
        <url-pattern>/*</url-pattern>
 </filter-mapping>

 

web.xml解决全站乱码问题

上一篇:mysql explain : inner join analysis ; better than


下一篇:HTML和CSS