jsp页面出现错误:

新建jsp出现Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet

Multiple annotations found at this line:
- The superclass "javax.servlet.http.HttpServlet" was not found on the Java 
Build Path

解决方案:

1.右键项目 build path

2.选择 configure build path

3.切换至 libraries 选项卡

4.点击 add external jars

5.找到tomcat安装路径(我的是D:\workspace\apache-tomcat-8.5.40-windows-x64\apache-tomcat-8.5.40\)lib文件夹下的servlet-api.jar,添加

6.确定 -> 完成

相关文章:

  • 2021-11-04
  • 2021-09-25
  • 2021-07-07
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-21
  • 2021-08-13
  • 2021-04-23
  • 2021-05-10
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案