maven项目 The superclass "javax.servlet.http.HttpServlet" was not found on the Jav

红太狼 2024-04-20 08:56 127阅读 0赞

maven项目 The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path 解决方法

pom文件中添加

  1. <dependency>
  2. <groupId>javax.servlet</groupId>
  3. <artifactId>javax.servlet-api</artifactId>
  4. <version>3.0.1</version>
  5. <scope>compile</scope>
  6. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,127人围观)

还没有评论,来说两句吧...

相关阅读