수동 빈 썸네일형 리스트형 [스프링| 스프링 핵심 원리 | 기본편 | 의존관계 자동 주입] 조회한 빈이 모두 필요할 때 List, Map / 수동 빈 public class AllBeanTest { @Test void findAllBean() { // ApplicationContext를 생성하고, AutoAppConfig와 DiscountService 클래스를 기반으로 Spring 컨테이너를 설정합니다. ApplicationContext ac = new AnnotationConfigApplicationContext(AutoAppConfig.class, DiscountService.class); // 컨테이너에서 DiscountService 타입의 빈을 가져옵니다. DiscountService discountService = ac.getBean(DiscountService.class); .. 더보기 이전 1 다음