diff --git a/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java b/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java index e0a4cfdb..2d0d2078 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java +++ b/main/src/main/java/org/sopt/makers/crew/main/common/config/SecurityConfig.java @@ -39,7 +39,8 @@ public class SecurityConfig { private static final String[] AUTH_WHITELIST = { "/health", - "meeting/v2/org-user/**" + "meeting/v2/org-user/**", + "/actuator/health" }; @Bean diff --git a/main/src/main/java/org/sopt/makers/crew/main/health/v1/HealthController.java b/main/src/main/java/org/sopt/makers/crew/main/health/v1/HealthController.java index 34816630..d622432c 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/health/v1/HealthController.java +++ b/main/src/main/java/org/sopt/makers/crew/main/health/v1/HealthController.java @@ -1,6 +1,7 @@ package org.sopt.makers.crew.main.health.v1; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.sopt.makers.crew.main.health.v1.dtos.service.get_health.response.HealthServiceGetHealthResponseDto; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; @@ -10,12 +11,20 @@ @RestController @RequiredArgsConstructor @RequestMapping("/health") +@Slf4j public class HealthController { private final HealthService healthService; @GetMapping("") public ResponseEntity getHealth() { + log.info("health 컨트롤러 come in V1"); return this.healthService.getHealth(); } + + @GetMapping("/v2") + public ResponseEntity getHealthV2() { + log.info("health 컨트롤러 come in V2"); + return ResponseEntity.ok().body("이건 내가 임의로 만든 헬스체크"); + } } \ No newline at end of file