问题 ‘HttpHeaders()’ has private access in ‘org.apache.http.HttpHeaders’
import org.springframework.http.HttpHeaders; //导入方法依赖的package包/类
原因:apache包下的这个HttpHeaders()是private的
参考:链接