怎么修改TOMCAT的默认主页为你自己项目的主页

如果webapp下有一个abc的文件来下有一个index.html,想设置为首页怎么操作

方法:

修改tomcat/conf/web.xml文件。
在web.xml文件中,有一段如下:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
在<welcome-file-list>与<welcome-file>index.html</welcome-file>之间添加上:

<welcome-file>/abc/index.html</welcome-file>

更改端口
<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" /> 


将port "8080"改成80端口

原文地址:https://www.cnblogs.com/dayspring/p/9657999.html