RedisRepository와 JpaRepository를 확실히 분리합니다 #393
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💡 배경 및 개요
서버를 실행할때 뜨던

이런 로그를 없앴습니다.
Resolves: #392
📃 작업내용
저 로그가 왜 뜨나 살펴본 결과 redis 테이블에서도 CrudRepository를 상속 받는 코드가 존재하면서 Spring data JPA repository 와 Spring data redis Repository가 모두 인식되어서 redis가 이게 내 리포지토리가 맞아? 그럼 명시해줘 라는 로그였습니다.
그래서 @EnableJpaRepositories 와 @EnableRedisRepositories로 빈을 주입할때 어떤 Repository를 주입할지 분리하였습니다.
🙋♂️ 리뷰노트
✅ PR 체크리스트
.env
,노션
,README
)"API 개발 완료됐어요"
,"환경값 추가되었어요"
)🎸 기타