除了HttpServletRequest cannot be resolved to a type之外的,各种xxxxx cannot be resolved to a type
转载自:https://www.cnblogs.com/haimishasha/p/6188241.html
博主提供了两种方法,我只尝试了第一种就成功了
1.这个错误可能是服务器自带的servlet库未导入的原因。
2.右键项目属性,转到Targeted Runtimes,选择一个服务器,例如Tomcat