[Spring] Spring bean(빈) 조회 - 동일한 타입이 둘 이상
스프링 빈을 조회할 때, 타입으로 조회 시 같은 타입의 스프링 빈이 둘 이상이면 오류가 발생한다. 이때는 빈 이름을 지정하면 된다. 같은 타입의 스프링 빈 조회에 대한 처리 방법을 코드로 작성해보자. ※ 참고로, ac.getBeansOfType() 을 사용하면 해당 타입의 모든 빈을 조회할 수 있다 ● 같은 타입의 스프링 빈 조회 같은 타입의 스프링 빈들을 조회하는 테스트 코드를 작성한다. ApplicationContextSameBeanFindTest.java package hello.core.beanfind; import hello.core.AppConfig; import hello.core.discount.DiscountPolicy; import hello.core.member.MemberReposi..