From 41f8f37469693b3a9eae87448b6dd49964ad916a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Fri, 31 May 2024 21:33:32 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20profile=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../haedal/zzansuni/controller/HealthCheckController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/controller/HealthCheckController.java b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/controller/HealthCheckController.java index 7a82c59..5447894 100644 --- a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/controller/HealthCheckController.java +++ b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/controller/HealthCheckController.java @@ -2,15 +2,19 @@ import lombok.extern.slf4j.Slf4j; import org.haedal.zzansuni.core.api.ApiResponse; +import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController @Slf4j public class HealthCheckController { + @Value("${spring.profiles.active}") + private String activeProfile; + @GetMapping("/health") public String healthCheck() { - return "ok"; + return "ok"+activeProfile; } }