找到Tomcat安装路径下的conf文件夹下的server.xml配置文件,修改配置Tomcat端口的标签"Connector",添加URIEncoding属性,代码如下:
- <Connector port= "8090" protocol= "HTTP/1.1"
- maxThreads= "150" connectionTimeout= "20000"
- redirectPort= "8443" URIEncoding= "utf-8" />
配置Tomcat中文字符集问题" />
找到Tomcat安装路径下的conf文件夹下的server.xml配置文件,修改配置Tomcat端口的标签"Connector",添加URIEncoding属性,代码如下: