如果本地使用httpclient调用一些接口,会产生巨多的日志
public static void main(String[] args) throws Exception {
HttpUtil.doGet("https://www.baidu.com");
}
[main] DEBUG org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: default
[main] DEBUG org.apache.http.client.protocol.RequestAuthCache - Auth cache not set in the context
[main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection request: [route: {s}->https://www.baidu.com:443][total kept alive: 0; route allocated: 0 of 2; total allocated: 0 of 20]
[main] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection leased: [id: 0][route: {s}->https://www.baidu.com:443][total kept alive: 0; route allocated: 1 of 2; total allocated: 1 of 20]
[main] DEBUG org.apache.http.impl.execchain.MainClientExec - Opening connection {s}->https://www.baidu.com:443
[main] DEBUG org.apache.http.impl.conn.Defau