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类图的创建
  • 热门搜索
    慈禧的秘密生活国语 usd是什么货币 如何测试网速 鼻子太大怎么变小 雪白雪白的什么的 如何照顾新生儿 我的变装生活 2月28日是什么星座 wifi怎么读音 高炮口子不还会怎么样