按照課程始終報錯:
HTTP Status 404 - /
--------------------------------------------------------------------------------
type Status report
message /
description The requested resource is not available.
###解決方法###
在web.xml配置歡迎頁,如下:
Web.xml中添加
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
這麼改過還是有問題。
最後。。。。
找了好久的問題,最後才發現,在發佈的目錄裏面沒有index.jsp頁面。
直接從源目錄複製進入即可。
就成功了。