IDEA的使用 在jsp页面中,出现不能智能显示方法pageContext.setAttribute 这里的setAttribute是手敲的,不是智能提示的 写完之后飘红 无法正常使用 原因:项目中没有引入jsp的包解决(在maven中添加以下依赖)<dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency>