Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
从您发布的屏幕截图来看,您似乎指向包
org.apache.http
的类,但从您在代码中使用的方法来看,我认为您更想使用 <代码>java.net.http类。因此,只需将导入语句修复在类的顶部,从:
到:
By the screenshots you posted, it looks like you're pointing to the classes of the package
org.apache.http
, but from the methods you use in your code, I think you rather want to usejava.net.http
classes.So simply fix your import statements on top of your class, from:
to: