【发布时间】:2018-11-29 18:51:21
【问题描述】:
我正在尝试使用 RestTemplate 发出 Http 请求,但它不断给我错误:'HttpHeaders' has private access in 'org.apache.http.HttpHeaders'
我只是想写这行:
HttpHeaders headers = new HttpHeaders();
【问题讨论】:
-
你打算如何在你的代码中使用这个对象?请注意,
org.apache.http.HttpHeaders只不过是一组常量。
标签: java spring-boot gradle header http-headers