在eclipse 中使用maven 创建java web项目,启动服务器遇到提示:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

一般解决方案:在pom.xml中添加依赖关系:

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>

相关文章:

  • 2021-10-18
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2021-08-26
  • 2022-01-12
  • 2022-01-06
  • 2021-10-04
相关资源
相似解决方案