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

原文链接:https://www.cnblogs.com/finalstar/p/6014496.html

解决方案:

在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>
原文地址:https://www.cnblogs.com/CryOnMyShoulder/p/10297579.html