添加如下依赖即可:
<dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency>
参考博客:http://jtuts.com/2016/03/04/javax-servlet-jsp-cannot-resolved-type/