项目中出现HttpServletRequest cannot be resolved to a type的解决方案

通常是Build Path 这里的问题,或者你的JDK编译环境设置不对。

这里只说Build Path的解决步骤。

解决方案:

右键:Build Path - Configure Build Path...  - Add Library... - Server Runtime - 选择你的tomcat版本

有问题请大家留言指出!

原文地址:https://www.cnblogs.com/curen/p/5681208.html