1. 程式人生 > >Java Web 中出現錯誤 The origin server did not find a current representation for the target resource or is

Java Web 中出現錯誤 The origin server did not find a current representation for the target resource or is

在eclipse中使用servers是報錯:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists

解決方法:

檢查自己寫的jsp檔案。發現 jsp檔案是放在WEB-INF 資料夾下面的。 WEB-INF檔案下的 jsp檔案使用者是不能直接訪問到的。好像是受保護的。

因此把jsp檔案 挪到  WebContent檔案下即可了。