From 156628a5f23edcd2747e4cbab96b66bec38d5148 Mon Sep 17 00:00:00 2001 From: cabbage16 Date: Fri, 4 Oct 2024 21:13:14 +0900 Subject: [PATCH] =?UTF-8?q?perf(#143):=20spring=20actuator=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EB=B8=8C=EB=9F=AC=EB=A6=AC=EB=A1=9C=20health=20check?= =?UTF-8?q?=20api=20=EB=8C=80=EC=B2=B4=20-=20health=20check=20api=20?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EC=BB=A8=ED=8A=B8=EB=A1=A4?= =?UTF-8?q?=EB=9F=AC=EC=9D=B8=20HealthCheckController=20=EB=A5=BC=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=ED=96=88=EC=96=B4=EC=9A=94.=20-=20=EB=8C=80?= =?UTF-8?q?=EC=8B=A0=20spring=20actuator=20=EB=9D=BC=EC=9D=B4=EB=B8=8C?= =?UTF-8?q?=EB=9F=AC=EB=A6=AC=EB=A5=BC=20=EC=B6=94=EA=B0=80=ED=95=98?= =?UTF-8?q?=EC=97=AC=20=EC=BB=A8=ED=8A=B8=EB=A1=A4=EB=9F=AC=20=EC=97=86?= =?UTF-8?q?=EC=9D=B4=20health=20check=20api=20=EB=A5=BC=20=EB=A7=8C?= =?UTF-8?q?=EB=93=A4=EC=97=88=EC=96=B4=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 1 + .../persistence/HealthCheckController.java | 14 -------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/main/java/com/bamdoliro/maru/infrastructure/persistence/HealthCheckController.java diff --git a/build.gradle b/build.gradle index 68808ca5..2852da81 100644 --- a/build.gradle +++ b/build.gradle @@ -31,6 +31,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-actuator' compileOnly 'org.projectlombok:lombok' runtimeOnly 'org.postgresql:postgresql' annotationProcessor 'org.projectlombok:lombok' diff --git a/src/main/java/com/bamdoliro/maru/infrastructure/persistence/HealthCheckController.java b/src/main/java/com/bamdoliro/maru/infrastructure/persistence/HealthCheckController.java deleted file mode 100644 index 964f273b..00000000 --- a/src/main/java/com/bamdoliro/maru/infrastructure/persistence/HealthCheckController.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.bamdoliro.maru.infrastructure.persistence; - -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -public class HealthCheckController { - - @GetMapping("/health") - public ResponseEntity checkHealth() { - return ResponseEntity.ok("OK"); - } -}