复习servlet的时候发现了的一个问题:

“HttpServlet cannot be resolved to a type”这种报错

关于HttpServlet cannot be resolved to a type的解决方法

关于这种报错的解决方法如下:

右键项目名

选择properties

选择Java Build Path

选择Add External JARs

然后在自己电脑中找到servlet-api.jar

关于HttpServlet cannot be resolved to a type的解决方法

最后apply--->ok

问题就解决了

关于HttpServlet cannot be resolved to a type的解决方法

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-09-01
  • 2021-05-31
  • 2022-12-23
猜你喜欢
  • 2022-01-15
  • 2021-10-28
  • 2021-06-23
  • 2021-07-27
  • 2021-09-14
  • 2021-10-14
相关资源
相似解决方案