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

实际上就是tomcat没有配置的原因

先去http://tomcat.apache.org 下载tomcat

然后根据http://jingyan.baidu.com/article/8065f87fcc0f182330249841.html进行tomcat的安装

然后在eclipse配置tomcat http://jingyan.baidu.com/article/ca2d939dd90183eb6d31ce79.html

最后项目中配置TOMCAT,照着这个http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html

原文地址:https://www.cnblogs.com/hark0623/p/4740082.html