2
我有一個producer template調用Http4 end point。我如何獲得http狀態響應代碼(如200,201等)?駱駝 - 生產者模板Http4響應代碼
Map<String, Object> headers = new HashMap<>();
headers.put(Exchange.HTTP_METHOD, GET);
producerTemplate.requestBodyAndHeaders("https4://myhostname.com:443/myURL", null, headers, String.class);