不用创建的新实例,而是
HttpClient使用Builder。你会得到一个
CloseableHttpClient。
例如用法:
CloseableHttpClient httpClient = HttpClientBuilder.create().setProxy(proxy).build()
而不是使用
getConnectionManager().shutdown(),而是使用
close()方法
CloseableHttpClient。

不用创建的新实例,而是
HttpClient使用Builder。你会得到一个
CloseableHttpClient。
例如用法:
CloseableHttpClient httpClient = HttpClientBuilder.create().setProxy(proxy).build()
而不是使用
getConnectionManager().shutdown(),而是使用
close()方法
CloseableHttpClient。