The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path问题的解决

这个问题的解决有二种解决办法:

1.加apache tomcat的运行环境即可

  选中项目点击右键

以上这种做法是在eclipse中的做法

2.如果是maven工程,还可以采用maven做法

就在这个工程的pom.xml配置文件中加入以下代码即可

<scope>元素的说明:范围  默认是compile

原文地址:https://www.cnblogs.com/hwgok/p/8034933.html