From 5c53c6f19b4c6d5bd73ad850f96967b2752751e8 Mon Sep 17 00:00:00 2001 From: yongho9064 Date: Thu, 2 Oct 2025 20:12:09 +0900 Subject: [PATCH 1/3] =?UTF-8?q?remove:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=ED=81=B4=EB=9E=98=EC=8A=A4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lawyer/global/exception/ErrorResponse.java | 16 ---------------- .../exception/GlobalExceptionHandler.java | 17 ----------------- 2 files changed, 33 deletions(-) delete mode 100644 backend/src/main/java/com/ai/lawyer/global/exception/ErrorResponse.java delete mode 100644 backend/src/main/java/com/ai/lawyer/global/exception/GlobalExceptionHandler.java diff --git a/backend/src/main/java/com/ai/lawyer/global/exception/ErrorResponse.java b/backend/src/main/java/com/ai/lawyer/global/exception/ErrorResponse.java deleted file mode 100644 index 705f04f1..00000000 --- a/backend/src/main/java/com/ai/lawyer/global/exception/ErrorResponse.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.ai.lawyer.global.exception; - -import lombok.AllArgsConstructor; -import lombok.Data; -import lombok.NoArgsConstructor; - -@Data -@AllArgsConstructor -@NoArgsConstructor -public class ErrorResponse { - - private String code; - - private String message; - -} diff --git a/backend/src/main/java/com/ai/lawyer/global/exception/GlobalExceptionHandler.java b/backend/src/main/java/com/ai/lawyer/global/exception/GlobalExceptionHandler.java deleted file mode 100644 index b36d88a8..00000000 --- a/backend/src/main/java/com/ai/lawyer/global/exception/GlobalExceptionHandler.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.ai.lawyer.global.exception; - -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.ExceptionHandler; -import org.springframework.web.bind.annotation.RestControllerAdvice; - -@RestControllerAdvice -public class GlobalExceptionHandler { - - @ExceptionHandler(IllegalArgumentException.class) - public ResponseEntity handleIllegalArgument(IllegalArgumentException e) { - return ResponseEntity.badRequest().body( - new ErrorResponse("400", e.getMessage()) - ); - } - -} From 4ddae35790cb4b4aaaf5bbc86e1d5644e8af3ebd Mon Sep 17 00:00:00 2001 From: DooHyoJeong Date: Thu, 2 Oct 2025 20:40:44 +0900 Subject: [PATCH 2/3] =?UTF-8?q?chore[deploy]:=20instance=20id=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI-CD_Pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI-CD_Pipeline.yml b/.github/workflows/CI-CD_Pipeline.yml index 42dd1932..b34bd6b7 100644 --- a/.github/workflows/CI-CD_Pipeline.yml +++ b/.github/workflows/CI-CD_Pipeline.yml @@ -232,6 +232,7 @@ jobs: echo "===== 새로운 컨테이너 실행 =====" docker run --env-file /home/ec2-user/configs/prod.env \ + -e SPRING_PROFILES_ACTIVE=prod \ -d --name app \ --network common \ -p 8080:8080 \ From 4d51e8915e4683cd1b514d725fe91d307f1ceef2 Mon Sep 17 00:00:00 2001 From: DooHyoJeong Date: Thu, 2 Oct 2025 20:43:52 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore[deploy]:=20instance=20id=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI-CD_Pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI-CD_Pipeline.yml b/.github/workflows/CI-CD_Pipeline.yml index b34bd6b7..f79d31d9 100644 --- a/.github/workflows/CI-CD_Pipeline.yml +++ b/.github/workflows/CI-CD_Pipeline.yml @@ -201,7 +201,7 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - instance-ids: "i-0f910c00568bbca61" + instance-ids: "i-08872fdb64acaf7f3" working-directory: / comment: Deploy command: |