这个问题很明显是因为缺少类库的支持。可能出现的场景是缺少运行环境,比如tomcat
解决方式:

1:右击项目  点击Build Path ->configure Build Path ...

关于eclipse项目The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的问题

2:在Libraries 选择Add Library添加库->选择Server Runtime 


关于eclipse项目The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的问题

3:选择apache tomcat 点击Finish 
关于eclipse项目The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的问题

完成导入  OK

相关文章:

  • 2021-12-31
猜你喜欢
  • 2022-01-06
  • 2021-10-04
  • 2021-10-18
相关资源
相似解决方案