From c71cfd6cd161181e2f2674829539f1cc3540ec1e Mon Sep 17 00:00:00 2001 From: SJ70 Date: Thu, 25 Jul 2024 23:07:41 +0900 Subject: [PATCH] =?UTF-8?q?rename:=20TokenRepository=20=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=20=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{Token_Repository.java => TokenRepository.java} | 2 +- src/main/java/com/j9/bestmoments/service/TokenService.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/com/j9/bestmoments/repository/{Token_Repository.java => TokenRepository.java} (76%) diff --git a/src/main/java/com/j9/bestmoments/repository/Token_Repository.java b/src/main/java/com/j9/bestmoments/repository/TokenRepository.java similarity index 76% rename from src/main/java/com/j9/bestmoments/repository/Token_Repository.java rename to src/main/java/com/j9/bestmoments/repository/TokenRepository.java index 20cb2fa..209103a 100644 --- a/src/main/java/com/j9/bestmoments/repository/Token_Repository.java +++ b/src/main/java/com/j9/bestmoments/repository/TokenRepository.java @@ -5,7 +5,7 @@ import org.springframework.stereotype.Repository; @Repository -public interface Token_Repository extends CrudRepository { +public interface TokenRepository extends CrudRepository { boolean existsByToken(String token); diff --git a/src/main/java/com/j9/bestmoments/service/TokenService.java b/src/main/java/com/j9/bestmoments/service/TokenService.java index ce6ad87..cab067d 100644 --- a/src/main/java/com/j9/bestmoments/service/TokenService.java +++ b/src/main/java/com/j9/bestmoments/service/TokenService.java @@ -6,7 +6,7 @@ import com.j9.bestmoments.domain.Token; import com.j9.bestmoments.dto.response.LoginDto; import com.j9.bestmoments.jwt.JwtTokenProvider; -import com.j9.bestmoments.repository.Token_Repository; +import com.j9.bestmoments.repository.TokenRepository; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.security.access.AccessDeniedException; @@ -18,7 +18,7 @@ @Slf4j public class TokenService { - private final Token_Repository tokenRepository; + private final TokenRepository tokenRepository; private final JwtTokenProvider jwtTokenProvider; private final MemberService memberService;