jsp 页面报错 javax.servlet.ServletException cannot be resolved to a type

jsp 页面报错:
Multiple annotations found at this line:
- javax.servlet.ServletException cannot be resolved to
a type
- javax.servlet.jsp.JspException cannot be resolved to
a type

其实项目当中很多大大小小的莫名错误,按照经验不可能有这么多的未知错误,肯定是缺少jar包,但是我的jar包又很齐全。

主要参考博客网址: https://blog.csdn.net/weisubao/article/details/72763249

我的项目是eclipse直接创建的JavaWeb项目
本质原因是Eclipse找不到项目所需jar包导致。
该jar包在tomcat中lib包本来就有,但是我的tomcat出了个小问题,整个tomcat文件夹被我全删了,eclipse再次载入时,找不到路径下tomcat对应的jar包报错,按博客文章第二点修改运行环境即可,
jsp 页面报错 javax.servlet.ServletException cannot be resolved to a type

相关文章:

  • 2021-12-05
  • 2021-08-15
  • 2021-12-11
  • 2022-12-23
  • 2021-10-04
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-07-28
相关资源
相似解决方案