问题描述: IDEA的jsp文件,在<% %>中输入pageContext等有提示,但没有setAttribute()、getAttribute()等提示,而且setAttribute()显示红色,如下图: 解决方案: File --> Project Structure --> Modules --> Dependencies --> 右边的加号( + ) --> libraries --> 点击Tomcat --> add selected --> OK 相关文章: 2021-11-15 2021-05-14 2021-04-11 2021-07-14 2022-01-05 2021-10-21 2021-08-15 2021-08-18