有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何注入Spring组织。阿帕奇。http。客户HttpClient?

在我的HttpServiceClientImpl类中有一个org.apache.http.client.HttpClient客户机引用

public class HttpServiceClientImpl implements  HttpServiceClient {

private HttpClient client;

public void createFooStuff(){
 client = HttpClientBuilder.create().build();

}

in createFooStuff HttpClientBuilder.create().build()返回org.apache.http.impl.client.CloseableHttpClient Abstract Class

我怎样才能把注射用的applicationContext


共 (0) 个答案