报错:The type javax.servlet.http.HttpServletRequest cannot be resolved 原因是没找到响应的tomcat以及tomcat的配置有问题; 再有个原因就是eclipse的插件配置没有整理好导致的。