Maven工程中web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误
解决方法:可以通过再pom.xml中添加代码解决
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency>
参考来源:https://www.cnblogs.com/realvie/p/6353788.html