spring项目部署到Tomcat,提交中文数据数显乱码问题

132 阅读1分钟

出现中文乱码问题是tomcat接收到数据没有进行过滤,在Tomcat/conf下面的web.xml里面添加如下过滤条件即可解决

          SetCharacterEncoding         org.springframework.web.filter.CharacterEncodingFilter                      encoding             UTF-8                            SetCharacterEncoding         /*