http://localhost:8080
localhost:8080
其实访问的页面是http://localhost:8080/ROOT/index.jsp
。可在硬盘中找到对应目录及文件。localhost:8080
显示tomcat默认主页。localhost:8080/resume/
显示项目主页。<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="/" docBase="resume" reloadable="true"/>
<!-- docBase表示以appBase值为起点的相对路径值|webapps文件下的项目名称 -->
<!-- path值为要输入的访问路径,空字符串和/表示默认 -->
localhost:8080
,若显示项目主页,则测试成功。<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
原文:https://www.cnblogs.com/ZhangZiYangDeBoKe/p/10947732.html