首页 > 代码库 > maven The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误

maven 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 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误