MyEclipse中遇到HttpServletResponse报红叉

 时间:2026-04-23 11:27:25

1、错误情况:HttpServletResponse response = ServletActionContext.getResponse();这句报红叉

MyEclipse中遇到HttpServletResponse报红叉

2、提示:The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files,并要求configuration build path

MyEclipse中遇到HttpServletResponse报红叉

3、解决办法:点击提示中的configuration build path(或者右键项目,点击Build Path->configuration build path),打开build path界面后,选择Libraries选项卡,并单击Add Library,如图

MyEclipse中遇到HttpServletResponse报红叉

4、选择MyEclipse Libraries,点击Next

MyEclipse中遇到HttpServletResponse报红叉

5、找到Java EE 5,点击Finish

MyEclipse中遇到HttpServletResponse报红叉

6、再看代码,红叉已经解决

MyEclipse中遇到HttpServletResponse报红叉

  • vscode如何更改编辑页面为白色背景?
  • navicat怎么连接mysql
  • 如何为jquery动态生成的p标签添加动态文本内容?
  • MyEclipse设置主题背景
  • 如何利用Rose实现UML类图的创建
  • 热门搜索
    淘宝昵称大全 南瓜饼怎么做好吃又简单 什么粽子好吃 绳子打结方法大全图解 桑蚕丝的洗涤方法 富德生命人寿怎么样 鳗鱼的做法大全 生蚝怎么做好吃 抵押贷款怎么办 鱼腥草怎么做好吃