From 8a2c1907b245c76ef49bacc6150d18caa5ae39b6 Mon Sep 17 00:00:00 2001 From: Jinhong Kim Date: Tue, 17 Oct 2023 14:08:11 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20Swagger=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index 4fec34e..af4f55f 100644 --- a/build.gradle +++ b/build.gradle @@ -34,6 +34,7 @@ dependencies { implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310' implementation 'com.fasterxml.jackson.core:jackson-databind' implementation 'org.springframework.boot:spring-boot-starter-data-redis' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2' } tasks.named('test') { From 6474bcd17d329f0eca60038b0d56a2114207121f Mon Sep 17 00:00:00 2001 From: Jinhong Kim Date: Tue, 17 Oct 2023 14:08:25 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../it/numble/hittracker/{ => common/config}/AppConfig.java | 2 +- .../hittracker/{ => common}/exception/BaseException.java | 2 +- .../exception/handler/GlobalExceptionHandler.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/it/numble/hittracker/{ => common/config}/AppConfig.java (91%) rename src/main/java/it/numble/hittracker/{ => common}/exception/BaseException.java (87%) rename src/main/java/it/numble/hittracker/{ => common}/exception/handler/GlobalExceptionHandler.java (86%) diff --git a/src/main/java/it/numble/hittracker/AppConfig.java b/src/main/java/it/numble/hittracker/common/config/AppConfig.java similarity index 91% rename from src/main/java/it/numble/hittracker/AppConfig.java rename to src/main/java/it/numble/hittracker/common/config/AppConfig.java index ceaf7a7..0c13ac4 100644 --- a/src/main/java/it/numble/hittracker/AppConfig.java +++ b/src/main/java/it/numble/hittracker/common/config/AppConfig.java @@ -1,4 +1,4 @@ -package it.numble.hittracker; +package it.numble.hittracker.common.config; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/src/main/java/it/numble/hittracker/exception/BaseException.java b/src/main/java/it/numble/hittracker/common/exception/BaseException.java similarity index 87% rename from src/main/java/it/numble/hittracker/exception/BaseException.java rename to src/main/java/it/numble/hittracker/common/exception/BaseException.java index 567c51d..752a4f2 100644 --- a/src/main/java/it/numble/hittracker/exception/BaseException.java +++ b/src/main/java/it/numble/hittracker/common/exception/BaseException.java @@ -1,4 +1,4 @@ -package it.numble.hittracker.exception; +package it.numble.hittracker.common.exception; import lombok.Getter; import lombok.NoArgsConstructor; diff --git a/src/main/java/it/numble/hittracker/exception/handler/GlobalExceptionHandler.java b/src/main/java/it/numble/hittracker/common/exception/handler/GlobalExceptionHandler.java similarity index 86% rename from src/main/java/it/numble/hittracker/exception/handler/GlobalExceptionHandler.java rename to src/main/java/it/numble/hittracker/common/exception/handler/GlobalExceptionHandler.java index e5ed96e..514ce86 100644 --- a/src/main/java/it/numble/hittracker/exception/handler/GlobalExceptionHandler.java +++ b/src/main/java/it/numble/hittracker/common/exception/handler/GlobalExceptionHandler.java @@ -1,8 +1,8 @@ -package it.numble.hittracker.exception.handler; +package it.numble.hittracker.common.exception.handler; import it.numble.hittracker.controller.response.Response; import it.numble.hittracker.controller.response.dto.Empty; -import it.numble.hittracker.exception.BaseException; +import it.numble.hittracker.common.exception.BaseException; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler;