Eclipse错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 该报错是由于缺少servlet-api.jar造成的,将servlet-api.jar复制到项目下的WEB-INF/lib目录下即可 servlet-api.jar在tomcat的lib目录下有,可以下载tomcat从中找到