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

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

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

 

解决方案:

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

 

有问题请大家留言指出!

posted @ 2016-07-18 14:50  粗人-  阅读(3126)  评论(0)    收藏  举报