1、设置D:\tomcat7\conf\server.xml 文件添加下面红色字体内容
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
2、修改eclipse 工作空间编码格式
【Window】--》【Preferences】--》【General】--》【Workspace】
修改为:UTF-8