The type javax.servlet.http.HttpServletRequest cannot be resolved

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

是缺少serverlet的引用库
在java build path的libraries tab页中选择Add external Jars…按钮
选择eclipse的安装目录D:\Program Files\eclipse-jee-mars-1-win32-x86_64\eclipse\plugins,添加javax.servlet.jsp_2.2.0.v201112011158.jar;javax.servlet_3.1.0.v201410161800.jar 即可
由于版本不同,文件包名可能稍有区别。

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页