首页 > 代码库 > maven中解决Type javax.servlet.jsp cannot be resolved to a type

maven中解决Type javax.servlet.jsp cannot be resolved to a type

解决方案:

在Maven的pom文件中引发如下依赖jar:

<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中解决Type javax.servlet.jsp cannot be resolved to a type