SpringMVC配置全局过滤编码问题

在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>
上一篇:利用pandas读取txt文件,先转为csv文件,加入列名后统计某一列各个值出现的次数


下一篇:IP聚合C段