maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu
Posted Realvie
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu相关的知识,希望对你有一定的参考价值。
在pom.xml中添加下面代码来下载servlet-api:
<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency>
以上是关于maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu的主要内容,如果未能解决你的问题,请参考以下文章
MyEclipse中,使用Maven新建web项目后,提示The superclass "javax.servlet.http.HttpServlet" was not found
maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu
Maven运行提示Not a Maven project maven-web-demo
使用Eclipse + Maven 构建Java Web 项目