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

Posted lonecloud

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa相关的知识,希望对你有一定的参考价值。

对于这个问题的话,请在pom文件中加入

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

 

以上是关于maven The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa的主要内容,如果未能解决你的问题,请参考以下文章

maven新建web项目提示The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

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

Eclipse中新建Maven Web项目报错:The superclass "javax.servlet.http.HttpServlet" was not found on t

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