码迷,mamicode.com
首页 > Web开发 > 详细

HttpServletRequest cannot be resolved to a type。

时间:2016-12-16 22:52:33      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:runtime   选择   ann   height   ges   https   idt   错误   can   

问题描述:
HttpServletRequest cannot be resolved to a type。
Multiple markers at this line
- The import javax.servlet.http cannot be resolved
- The import javax.servlet.http cannot be resolved
- The import javax.servlet.http cannot be resolved
解决方案:
1.这个错误可能是服务器自带的servlet库未导入的原因。
2.右键项目属性,转到Targeted Runtimes,选择一个服务器,例如Tomcat,单击应用,可能就可以解决。
3.或者一开始建立项目就如下Targeted Runtimes

技术分享



  


HttpServletRequest cannot be resolved to a type。

标签:runtime   选择   ann   height   ges   https   idt   错误   can   

原文地址:http://www.cnblogs.com/haimishasha/p/6188241.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!