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>