问题:Httpservlet cannot be resolved to a type
原因:显然是Eclipse找不到相应的包,即javax.servlet
Httpservlet cannot be resolved to a type的解决
解决方案:
导入servlet-api.jar,,这个jar包在jdk中没有,它存在于tomcat中
导入方式如下:
项目—》右键—》Build Path—》Configure Build Path
Httpservlet cannot be resolved to a type的解决
OK,问题解决~

相关文章:

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