eclipse新建JSP頁面報錯:Multiple annotations found at this line解決方法


錯誤提示:

Multiple annotations found at this line:
	- The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
	 Build Path
	- The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
	 Build Path

 

錯誤原因:缺少編譯JSP頁面的庫:server Runtime ,一般出現在新安裝的eclipse中。

解決方法: 

右鍵該項目---->點擊build path---->選擇configure build path---->下一步---->configure build path界面下找到java build path項---->Libraries選項下的Add Library---->找到server Runtime 然后next---->ok

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM