每次访问本地Tomcat服务里面的项目都要输入一大串路径http://127.0.0.18080/ServletDemo/message.jsp,费时耗力还经常出错,本着能少一个单词就绝不多写一个字母的思维,来解决一下这个问题。
配置80端口
打开apache-tomcat-7.0.42\conf目录下的Service.xml
大概在70行左右,把默认8080端口改为80,顺便把字符集也设置一下
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort=