From 1dc8232b9fa03a1aa27d857fa0edc960bd1fac9d Mon Sep 17 00:00:00 2001 From: seokjun jeon Date: Thu, 9 Jan 2025 09:51:27 +0900 Subject: [PATCH] 20250109 --- src/main/java/com/icomsys/MessagingConnector.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/icomsys/MessagingConnector.java b/src/main/java/com/icomsys/MessagingConnector.java index c2f509e..a4293a3 100644 --- a/src/main/java/com/icomsys/MessagingConnector.java +++ b/src/main/java/com/icomsys/MessagingConnector.java @@ -77,8 +77,10 @@ public class MessagingConnector { try { ObjectMapper objectMapper = new ObjectMapper(); Map body = prepareRequestBody(messageSendRequest, objectMapper); + System.out.println("body : " + body); String jsonBody = objectMapper.writeValueAsString(body); + System.out.println("jsonbody : " + jsonBody); HttpRequest request = HttpRequest.newBuilder() .uri(URI.create(url)) @@ -88,6 +90,9 @@ public class MessagingConnector { .build(); HttpResponse response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); + System.out.println("responseCode : " + response.statusCode()); + System.out.println("responseBody : " + response.body()); + System.out.println("responseFull : " + response); if (response.statusCode() == 200) { sejongMessageSendResponse = objectMapper.readValue(response.body(), SejongMessageSendResponse.class);