[Spring] 스프링 컨테이너 생성(@Configuration) | 스프링 빈 등록(@Bean) | 스프링 컨테이너 적용 | 스프링 의존성 주입(DI)
스프링 빈이 등록되는 스프링 컨테이너를 생성하여 의존성을 주입해보자. 참고하는 코드는 아래 링크와 같다. https://healthdevelop.tistory.com/entry/spring29 [Spring] Spring 고객-주문 시스템 구현 | AppConfig | 관심사의 분리 좋은 객체 지향 프로그래밍을 구현하기 위해선 SOLID 원칙을 따라야 한다. https://healthdevelop.tistory.com/entry/spring28 [Spring] SOLID 원칙 | 객체 지향 설계의 5가지 원칙 좋은 객체 지향 설계를 하기 위.. healthdevelop.tistory.com ● AppConfig 스프링 기반으로 변경 기존의 작성된 AppConfig를 통해 클라이언트(ex. service)..