1. 程式人生 > >maven專案 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

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

在myeclipse中,新建maven專案報如題錯誤。對於這個問題,各種搜尋,沒有找到完全一樣的教程,最後終於自己搞好啦。搜尋得知,因為沒有找到tomcat 伺服器,解決辦法:專案名——右擊——Add Library——Myeclipse Server Library——(接下來選擇自己的本地伺服器)點選即可,這樣就找到伺服器啦