작성
·
558
0
강의에 나온 테스트를 그대로 따라 진행하였는데, AutoAppConfigTest는 통과가 되었는데,
CoreApplicationTests에서 에러가 두개가 나옵니다.
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberServiceImpl' defined in file [/Users/aiden/Desktop/CP/study/core/out/production/classes/hello/core/member/MemberServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'hello.core.member.MemberRepository' available: expected single matching bean but found 2: memoryMemberRepository,MemberRepository
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'hello.core.member.MemberRepository' available: expected single matching bean but found 2: memoryMemberRepository,MemberRepository
둘 에러 전부 memoryMemberRepository 와 MemberRepository와 관련있어보이는데 어떻게 해야할까요?