直接修改conf / server.xml Tomcat下

如果找到代码,可以添加代码的红色部分。

<连接器端口=8080uriencoding =UTF-8协议=http / 1.1
connectiontimeout =20000
redirectport = 8443 />