The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

初學前端,遇到了這個問題,在jsp頁面的開頭會有個紅色的波浪線,鼠標放上去會報這個錯。
The superclass "javax.servlet.http.HttpServlet" was not found on theJavaBuild Path



解決方法:右擊項目-->選擇build path-->coonfigure build path


點擊右邊的Add library


選擇server runtime

點擊你的tomcat服務器,然後finish


最後就成功了,網上還有別的方法,暫時沒有試。。
發佈了55 篇原創文章 · 獲贊 59 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章