Eclipse的使用[JavaWeb](四)
web.xml
项目的启动文件。
位置:
【WebContent】→【WEB-INF】→web.xml。
浏览模式:
打开文件后,在文件显示窗口左下方可看到如下两个按钮。
①【Design】:只查看。
②【Source】:可编辑。
基本修改:
确定默认首页:(若默认index.jsp,则修改如下)
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>