在构建maven项目的时候提示jsp中提示
javax.servlet.jsp.JspException cannot be resolved to a type错误
在maven的pom.xml中添加
<!-- javaEE需要的构件 -->
<!-- servlet-api:HttpServletRequest,HttpServletResponse -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.2.1-b03</version>
<scope>provided</scope>
</dependency>
这两个依赖即可