文章目录


问题描述

  • 项目内报错HttpServletRequest cannot be resolved to a type
  • 找不到HttpServletRequestHttpServletResponseServletException
    HttpServletRequest cannot be resolved to a type解决方案

解决方案

原因: jdk 里不包括servlet-api.jar 这个包,此包在Tomcat 中存在。

HttpServletRequest cannot be resolved to a type解决方案

将tomcat中的此jar包copy到项目中并builpath即可。



❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

成功帮助学姐Debug,开心。我是Debug小能手,Debug请找我。

HttpServletRequest cannot be resolved to a type解决方案

相关文章:

  • 2021-11-21
  • 2021-05-31
  • 2022-12-23
  • 2021-09-23
  • 2021-10-28
  • 2021-12-21
  • 2022-01-15
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案