The import javax.servlet.http.HttpServletRequest cannot be resolved问题![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3594c3647d2a3297cff18c118fcc5bf3.png)
The import javax.servlet.http.HttpServletRequest cannot be resolved即
HttpServletRequest不能解析为类型,这个错误可能是servlet库没有导入。
解决
右击项目找到Bulid Path点击Configure Bulid Path
选择Libraries,点击Add Library
选择Server Runtime
选择服务器,Finish。
最后Apply and Close,问题就解决了。