解决SpringMVC+HTML中文乱码:web.xml中去掉一个标签
假设你在SpringMVC配置文件中配置了HTML的视图解析器,在web.xml中配置了中文乱码控制器CharacterEncodingFilter等等还是没有解决乱码。
那么去掉web.xml中的
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
再启动试试看。
...
原创
2021-03-26 10:01:38 ·
71 阅读 ·
0 评论