web.xml中<welcome-file-list>配置
来源:互联网 发布:js div name 编辑:程序博客网 时间:2024/05/17 20:27
web.xml中<welcome-file-list>配置((web欢迎页、首页))
在web项目中,当用户在浏览器中输入的URL不包含某个特定的Servlet、html、jsp页面时,web.xml中<welcome-file-list>标签元素就会指定显示的默认文件。
案例:
项目结构如下:
情况1:
web.xml中<welcome-file-list>标签元素指定显示的默认文件如下:
当浏览器输入的URL为:http://127.0.0.1:8080/hotel/ 即可显示http://127.0.0.1:8080/hotel/sys/index.jsp 中的内容
情况2:
web.xml中<welcome-file-list>标签元素指定显示的默认文件如下:
当浏览器输入的URL为:http://127.0.0.1:8080/hotel/sys/ 即可显示http://127.0.0.1:8080/hotel/sys/index.jsp 中的内容
阅读全文
0 0
- web.xml中<welcome-file-list>配置
- 关于web.xml中<welcome-file-list>
- 关于web.xml中<welcome-file-list>
- web.xml中的welcome-file-list不起作用
- web.xml中的welcome-file-list
- web.xml中welcome-file配置的问题
- web.xml中配置的welcome-file 不生效
- web.xml之welcome-file-list、error-page
- web.xml(7)_mime-mapping、welcome-file-list、error-page
- web.xml里面的welcome-file-list是什么意思
- java web.xml welcome-file-list的默认值
- 关于web.xml中的welcome-file-list(欢迎页)
- Jetty下web.xml的welcome-file-list无效
- java web.xml welcome-file-list的默认值
- 关于web.xml中的welcome-file-list(欢迎页)
- 关于web.xml中的welcome-file-list(欢迎页)
- web.xml中的welcome-file-list(欢迎页)
- <welcome-file-list>action配置
- java零碎
- POI生成Excel
- String,StringBuffer,StringBuilder的区别
- jiava变量
- linux cron定时任务
- web.xml中<welcome-file-list>配置
- 四种常见线程池的基本用法
- HR问会不会打“农药”,我该会还是不会呢?
- Linux Thread 最基本用法
- C++之常见error 2001
- 总结解决springmvc提交数据中文乱码的几种方式、控制台乱码
- poi导出Excel
- 那些字符编码导致的问题
- Java中的自动装箱与拆箱