文章目录
一 默认欢迎资源
-
默认欢迎资源文件:
Tomcat 针对用户对当前网站发起默认请求,自动返回资源文件
-
默认请求:
- 正常请求: http://lcoalhost:8080/myWeb/one.html
- 默认请求: http://localhost:8080/myWeb/
-
Tomcat遵守的默认欢迎资源文件定位规则:
- 规则位置:tomcat安装目录/conf/web.xml
-
自定义网站中的默认欢迎资源文件定位规则:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp