From e9d97f0b47dee6cb6ca5d857630de92b1aa0d549 Mon Sep 17 00:00:00 2001 From: jimmy0524 <10jmin04@naver.com> Date: Tue, 24 Dec 2024 08:41:05 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20WebhookServiceImpl=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=EC=9E=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apiserver/api/chat/service/WebhookServiceImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/site/billbill/apiserver/api/chat/service/WebhookServiceImpl.java b/src/main/java/site/billbill/apiserver/api/chat/service/WebhookServiceImpl.java index a6dc382..c73f03e 100644 --- a/src/main/java/site/billbill/apiserver/api/chat/service/WebhookServiceImpl.java +++ b/src/main/java/site/billbill/apiserver/api/chat/service/WebhookServiceImpl.java @@ -21,11 +21,10 @@ public class WebhookServiceImpl implements WebhookService { private final WebClient webClient; private final ObjectMapper objectMapper; - @Value("${webhook.url}") - private String webhookUrl; - @Autowired - public WebhookServiceImpl(WebClient.Builder webClientBuilder, ObjectMapper objectMapper) { + public WebhookServiceImpl(@Value("${webhook.url}") String webhookUrl, + WebClient.Builder webClientBuilder, + ObjectMapper objectMapper) { this.webClient = webClientBuilder.baseUrl(webhookUrl).build(); this.objectMapper = objectMapper; }