问题描述:

IDEA的jsp文件,在<% %>中输入pageContext等有提示,但没有setAttribute()、getAttribute()等提示,而且setAttribute()显示红色,如下图:
IDEA的jsp没有代码提示
IDEA的jsp没有代码提示

解决方案:

File --> Project Structure --> Modules --> Dependencies --> 右边的加号( + ) --> libraries --> 点击Tomcat --> add selected --> OK
IDEA的jsp没有代码提示
IDEA的jsp没有代码提示
IDEA的jsp没有代码提示

相关文章:

  • 2021-11-15
  • 2021-05-14
  • 2021-04-11
  • 2021-07-14
  • 2022-01-05
  • 2021-10-21
  • 2021-08-15
  • 2021-08-18
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-06-27
  • 2022-12-23
相关资源
相似解决方案