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>

posted @ 2016-10-31 00:03  finalstar  阅读(703)  评论(1编辑  收藏  举报