From 5582bb1904d8d8ddfa92b342d57712422a0b7e83 Mon Sep 17 00:00:00 2001 From: IdionKim Date: Fri, 27 Mar 2020 15:52:04 +0900 Subject: [PATCH] =?UTF-8?q?[#109]=20Refactor:=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=A7=80=20=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 - Jay와 얘기해서 패키지 구조를 변경하였습니다. --- .../codesquad/team1/signup/{web => }/api/ApiUserController.java | 2 +- .../team1/signup/{ => common}/config/JasyptConfig.java | 2 +- .../codesquad/team1/signup/{ => common}/config/WebConfig.java | 2 +- .../com/codesquad/team1/signup/domain/user/UserRepository.java | 1 - .../team1/signup/web/{controller => }/MainController.java | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) rename BE/src/main/java/com/codesquad/team1/signup/{web => }/api/ApiUserController.java (98%) rename BE/src/main/java/com/codesquad/team1/signup/{ => common}/config/JasyptConfig.java (96%) rename BE/src/main/java/com/codesquad/team1/signup/{ => common}/config/WebConfig.java (89%) rename BE/src/main/java/com/codesquad/team1/signup/web/{controller => }/MainController.java (88%) diff --git a/BE/src/main/java/com/codesquad/team1/signup/web/api/ApiUserController.java b/BE/src/main/java/com/codesquad/team1/signup/api/ApiUserController.java similarity index 98% rename from BE/src/main/java/com/codesquad/team1/signup/web/api/ApiUserController.java rename to BE/src/main/java/com/codesquad/team1/signup/api/ApiUserController.java index 38c6f0c..8cb48a1 100644 --- a/BE/src/main/java/com/codesquad/team1/signup/web/api/ApiUserController.java +++ b/BE/src/main/java/com/codesquad/team1/signup/api/ApiUserController.java @@ -1,4 +1,4 @@ -package com.codesquad.team1.signup.web.api; +package com.codesquad.team1.signup.api; import com.codesquad.team1.signup.common.constants.ErrorMessages; import com.codesquad.team1.signup.common.response.ErrorResponse; diff --git a/BE/src/main/java/com/codesquad/team1/signup/config/JasyptConfig.java b/BE/src/main/java/com/codesquad/team1/signup/common/config/JasyptConfig.java similarity index 96% rename from BE/src/main/java/com/codesquad/team1/signup/config/JasyptConfig.java rename to BE/src/main/java/com/codesquad/team1/signup/common/config/JasyptConfig.java index ea8da69..79eb19d 100644 --- a/BE/src/main/java/com/codesquad/team1/signup/config/JasyptConfig.java +++ b/BE/src/main/java/com/codesquad/team1/signup/common/config/JasyptConfig.java @@ -1,4 +1,4 @@ -package com.codesquad.team1.signup.config; +package com.codesquad.team1.signup.common.config; import org.jasypt.encryption.StringEncryptor; import org.jasypt.encryption.pbe.PooledPBEStringEncryptor; diff --git a/BE/src/main/java/com/codesquad/team1/signup/config/WebConfig.java b/BE/src/main/java/com/codesquad/team1/signup/common/config/WebConfig.java similarity index 89% rename from BE/src/main/java/com/codesquad/team1/signup/config/WebConfig.java rename to BE/src/main/java/com/codesquad/team1/signup/common/config/WebConfig.java index abc0c85..f3cdad8 100644 --- a/BE/src/main/java/com/codesquad/team1/signup/config/WebConfig.java +++ b/BE/src/main/java/com/codesquad/team1/signup/common/config/WebConfig.java @@ -1,4 +1,4 @@ -package com.codesquad.team1.signup.config; +package com.codesquad.team1.signup.common.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; diff --git a/BE/src/main/java/com/codesquad/team1/signup/domain/user/UserRepository.java b/BE/src/main/java/com/codesquad/team1/signup/domain/user/UserRepository.java index 77e3c33..5bcace5 100644 --- a/BE/src/main/java/com/codesquad/team1/signup/domain/user/UserRepository.java +++ b/BE/src/main/java/com/codesquad/team1/signup/domain/user/UserRepository.java @@ -1,6 +1,5 @@ package com.codesquad.team1.signup.domain.user; -import com.codesquad.team1.signup.domain.user.User; import org.springframework.data.jdbc.repository.query.Query; import org.springframework.data.repository.CrudRepository; diff --git a/BE/src/main/java/com/codesquad/team1/signup/web/controller/MainController.java b/BE/src/main/java/com/codesquad/team1/signup/web/MainController.java similarity index 88% rename from BE/src/main/java/com/codesquad/team1/signup/web/controller/MainController.java rename to BE/src/main/java/com/codesquad/team1/signup/web/MainController.java index 9e8a092..ef7d6e8 100644 --- a/BE/src/main/java/com/codesquad/team1/signup/web/controller/MainController.java +++ b/BE/src/main/java/com/codesquad/team1/signup/web/MainController.java @@ -1,4 +1,4 @@ -package com.codesquad.team1.signup.web.controller; +package com.codesquad.team1.signup.web; import org.slf4j.Logger; import org.slf4j.LoggerFactory;