강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

Real-world! Spring Boot and JPA Utilization 1 - Web Application Development

JPA and DB Configuration, Operation Check

MemberRepositoryTest 에러가 납니다

Written on

·

654

1

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jpabook.jpashop.MemberRepositoryTest': Unsatisfied dependency expressed through field 'memberRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'jpabook.jpashop.MemberRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

에러가 납니다

Member

MemberRepository

application.yml

MemberRepositoryTest

JPAjavaspring-boot웹앱spring

Answer 2

2

안녕하세요. 김민석님, 공식 서포터즈 OMG입니다.
imageMVCC=TRUE를 삭제하고 확인해보시겠어요?

@SpringBootTest를 MemberRepositoryTest에 추가해주세요 :)


감사합니다.

0

영상에는 JUnit4로 만들어서 JUnit4로 만들어서 시도했는데 실패해서 JUnit5로 만들어서 했더니 해결됐습니다.

답변 올라오셔서 다시 만들어서 MVCC=TRUE 지우고 해봤는데 잘 되네요 감사합니다.

No author

This post's author information has been deleted.

Ask a question