[Chapter 08] extends JpaRepository<?,?> #110
-
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
Q1. JpaRepository의 구현체인 SimpleJpaRepository.class에 @repository는 Component 어노테이션에 더불어 DB연동중 발생하는 에러를 스프링 에러로 바꿔주는 역할을 한다고 합니다 ! Q2. 잘 모르겠어서 다른 분들의 답변 부탁드립니다 ! (혹시 확장자 yaml이 아니라 yml ..?) |
Beta Was this translation helpful? Give feedback.
-
@coalong 님 파일 구조입니다. ![]() |
Beta Was this translation helpful? Give feedback.
-
아래의 링크를 참조해 보시면 해결방법을 강구할 수 있을 것 같습니다. |
Beta Was this translation helpful? Give feedback.
-
@TestPropertySource(properties = {"spring.config.location = classpath:application-test.yaml"}) 이거 저번에 지호님이 올려주신대로 설정하니까 되더라구요 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
금주 간단 정리 Check
|
Beta Was this translation helpful? Give feedback.
-
책은 .properties 입니다. |
Beta Was this translation helpful? Give feedback.
Q1. JpaRepository의 구현체인 SimpleJpaRepository.class에
이미 Repository 어노테이션이 적용되어 있어
컴포넌트 스캔의 대상이 되기 때문입니다.
@repository는 Component 어노테이션에 더불어 DB연동중 발생하는 에러를 스프링 에러로 바꿔주는 역할을 한다고 합니다 !
Q2. 잘 모르겠어서 다른 분들의 답변 부탁드립니다 ! (혹시 확장자 yaml이 아니라 yml ..?)