我的org.apache.http.client.HttpClient
班级中有HttpServiceClientImpl
个客户参考。
public class HttpServiceClientImpl implements HttpServiceClient {
private HttpClient client;
public void createFooStuff(){
client = HttpClientBuilder.create().build();
}
createFooStuff HttpClientBuilder.create().build()
中的会返回org.apache.http.impl.client.CloseableHttpClient Abstract Class
如何为此注射加入applicationContext
???