The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

来源:互联网 发布:excel纸上数据录入技巧 编辑:程序博客网 时间:2024/05/22 01:41

新建了一个maven的web项目,默认的index.jsp页面,出现了:

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.1.0</version>
</dependency>

 

阅读全文
0 0