天天看點

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

步驟一:項目右鍵 找到并且點選build path  選中 configure build path...

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

步驟二:Libraies 中 選中 Add library ,從Add Libraries 中選擇 Server Runtime

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

步驟三:選中對應的 tomcat 版本 finish 即可

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