假设你在SpringMVC配置文件中配置了HTML的视图解析器,在web.xml中配置了中文乱码控制器CharacterEncodingFilter等等还是没有解决乱码。
那么去掉web.xml中的
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
再启动试试看。
假设你在SpringMVC配置文件中配置了HTML的视图解析器,在web.xml中配置了中文乱码控制器CharacterEncodingFilter等等还是没有解决乱码。
那么去掉web.xml中的
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
再启动试试看。