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


解决办法:

加入maven的依赖

<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
			<version>2.2.1-b03</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>3.0-alpha-1</version>
		</dependency>


初用maven,搭建环境测试中。

你可能感兴趣的:(异常)