String url = XXX;
HttpGet get = new HttpGet(url);
HttpResponse response = client.execute(get);
String res = EntityUtils.toString(response.getEntity());
https://blog.youkuaiyun.com/qq_39443053/article/details/96364948
上述HTTPGET的方式会报错Connection pool shut down
经过排查,原因是我在try-finally中,finally的执行了 client.close();的命令;
而根据上述blog的表示: 连接池代码中,连接不需要业务管理而是交给连接池管理。
这里需要去学习一下源码:到底是怎么实现自己的连接池管理的