The import javax.servlet.http.HttpServletRequest cannot be resolved问题与解决
The import javax.servlet.http.HttpServletRequest cannot be resolved问题
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,问题就解决了。