eclipse中 报出The type javax.servlet.http.HttpServlet cannot be resolved. It is indirect错误
Posted on 2016-05-01 02:05 Anhw 阅读(4288) 评论(0) 收藏 举报在Myeclispe部署项目后 报错
The type javax.servlet.http.HttpServlet cannot be resolved. It is indirect错误
如果在MyEclipse中遇到这种情况,也就是HttpServletRequest报红叉的时候,这样做
1、右键工程找到build path项
2、找到Add Libraries
3、点击myEclipse Libraries,Next
4、添加JavaEE 5
OK
浙公网安备 33010602011771号