關於eclipse項目The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的問題

這個問題很明顯是因爲缺少類庫的支持。可能出現的場景是缺少運行環境,比如tomcat 解決方式: 1:右擊項目  點擊Build Path ->configure Build Path ... 2:在Libraries 選擇Add Library添加庫->選擇Server Runtime  3:選擇apache tomcat 點擊Finish  完成導入  OK
相關文章
相關標籤/搜索