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; } }