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

 

posted @ 2019-04-16 22:21  丿流年  阅读(231)  评论(0编辑  收藏  举报
TOP