AnnotationConfigApplicationContext1 [Spring] Spring 을 이용하여 Service 구축하기 - 1 스프링 기반으로 변경하기 기존의 DI컨테이너(AppConfig)는 순수한 자바코드로 의존성을 주입했었다. 이제부터는 스프링을 이용하여 의존성을 주입하겠다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 package hello.core; import hello.core.Repository.MemberRepository; import hello.core.Repository.MemoryMemberRepository; import hello.core.discount.DiscountPolicy; import hello.core.discount.FixDiscountPo.. 2021. 10. 28. 이전 1 다음