You need to start the async client before using it
try (CloseableHttpAsyncClient httpclient = HttpAsyncClients.createDefault()) {
httpclient.start();
try (CloseableHttpAsyncClient httpclient = HttpAsyncClients.createDefault()) {
httpclient.start();
}
Request cannot be executed; I/O reactor status: INACTIVE
CloseableHttpAsyncClient asyncHttpClient= HttpAsyncClients.createDefault();
asyncHttpClient.start();
异步httpAsyncclient与同步不同,需要在回调之前调用start()方法