http请求HttpRespons cannot be resolved to a type如何解决

复制了一段http请求的代码,但是会报HttpRespons cannot be resolved to a type这个错,请大神指点一下图片说明

这很明显你的单词拼错了,Response.

是不是缺少了jar包

添加相关引用类

找找看看是不是少了jar 。

你拼写错了,应该是HttpResponse。末尾少了个字母e.

http://blog.csdn.net/testcs_dn/article/details/39643119,看看这个吧。

我就进来看看,复制都能复制错吗

这上面是这么写的没错啊

response都写错了,,英语这么差的

缺少jar了,
HttpRespons cannot be resolved to a type

缺少jar了,
HttpRespons cannot be resolved to a type

你要写的是不是response少个e,如果不是,那就自己定义这个类

是HttpServletResponse,而不是HttpResponse