訪問 index.xhtml 返回 404,圖片顯示項目結構截圖。
index.xhtml 必須直接位於此目錄下,而非子目錄。wtpwebapps/專案名/ 下是否存在 index.xhtml。<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
在瀏覽器直接輸入 https://host:port/專案名/index.xhtml,若 404 則為文件未部署到根目錄。