tomcate6.x版本使用spring mvc redirect重定向中文参数乱码

星期五, 2014-03-21 | Author: Lee | JAVA-and-J2EE | 4,639 views

在tomcate7.x和8.x 的版本中默认就启用了utf8,没有问题

在开发的是使用的是tomcate6.x遇到这个问题做下配置即可

因为参数是通过URL参数提交的,所以在%TOMCAT_HOME%/congf/server.xml中的标签,加入了URIEncoding=”UTF-8″属性

即可:

Tags: , ,

文章作者: Lee

本文地址: https://www.pomelolee.com/1298.html

除非注明,Pomelo Lee文章均为原创,转载请以链接形式标明本文地址

No comments yet.

Leave a comment

Search

文章分类

Links

Meta