Maven构建WEB项目JSP报The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
2016-12-16 18:44
801 查看
一、错误描述
Maven构建WEB项目JSP文件报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
二、解决方法
在pom配置文件中加入以下依赖:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
就可以了。
Maven构建WEB项目JSP文件报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
二、解决方法
在pom配置文件中加入以下依赖:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
就可以了。
相关文章推荐
- Eclipse中新建Maven Web项目报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 新建MAVEN工程,JSP页面报The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 在创建Maven项目he superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 新建maven项目后, jsp页面报错,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
- Maven项目报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- maven web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- 【Java Web】The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- java web(jsp)-The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path