Leif
Results
1
comments of
Leif
@zhouciming 提到的问题确实存在,既然已经把CloseableHttpResponse的内容封装到HttpClientResult返回了,返回后也是直接关闭了,不如直接在getHttpClientResult中关闭。 ` /** * Description: 获得响应结果 */ public static HttpClientResult getHttpClientResult(CloseableHttpClient httpClient, HttpRequestBase httpMethod) throws IOException { // 执行请求 try (CloseableHttpResponse httpResponse = httpClient.execute(httpMethod)) { // 获取返回结果 if (httpResponse...