- 出現這樣的錯誤有多種緣由,本次我所解決的是沒有設置默認加載及視頻頁面。
- 簡單闡述更改經驗及心理路程,在出現這個錯誤的時候我就蒙了,我之間建立的一個項目就能夠加載,如今建立一個項目就無法加載了,跟奇怪的是我輸入localhost:8080就能夠加載 如圖:
以後輸入localhost:8080:/Shopping/admin/login.jsp 就會出現這種狀況 如圖:
我在查了不少資料後,發現多是沒有配置web.xml 打開web.xml果真是沒有配置,如圖:
<display-name>Shopping</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
複製代碼
總結
- 遇到Bug不要方,不要方,不要方
- 多思考,查資料
- 要有耐心