直接上代码 1.主程序 public class TestMain { public static void main(String[] args) throws NSQException, TimeoutException { ExecutorService pool = Executors.newCachedThreadPool(); // http请求 PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnecti…