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

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

pom文件中添加

<dependency>
	<groupId>javax.servlet</groupId>
	<artifactId>javax.servlet-api</artifactId>
	<version>3.0.1</version>
	<scope>compile</scope>
</dependency>

猜你喜欢

转载自injavawetrust.iteye.com/blog/2367037