idea编辑jsp页面的时候,使用pageContext.setAttribute方法会飘红

idea编辑jsp页面的时候,使用pageContext.setAttribute方法会飘红。

解决办法:

导入

<!-- https://mvnrepository.com/artifact/javax.servlet/jsp-api -->
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.0</version>
    <scope>provided</scope>
</dependency>
发布了47 篇原创文章 · 获赞 7 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/floraruo/article/details/103395205