MyEclipse中遇到HttpServletResponse报红叉

 时间:2024-10-12 05:32:49

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

MyEclipse中遇到HttpServletResponse报红叉

2、提示:The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referen艘早祓胂ced 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类图的创建
  • 热门搜索
    不屑的近义词 中国紫檀博物馆 感冒鼻塞吃什么药 温和的近义词 怎么查档案在哪里 淘宝怎么发链接 健康生活常识 最新发型男 怎么去除痘痘 豆瓣酱怎么做