목록2022/08/17 (1)
Developer_Neo
[Spring] - 스프링 컨테이너
스프링 컨테이너(Spring Container)(Spring IOC Container) Bean들의 생명주기(Life Cycle)를 관리한다 즉, Bean 생성, 관리, 제거 등의 역할을 담당한다. Spring Framework에서 IOC를 사용한다고 하였는데 IOC(제어의 역전)는 Spring Bean들의 생명주기를 관리하기 위해 사용한다. 스프링 컨테이너가 빈을 관리하는 과정은 DI(의존성 주입)가 이루어진 빈들을 BeanFactory와 ApplicationContext라는 2개의 컨테이너로 제어하고 관리한다. BeanFactory와 ApplicationContext는 인터페이스로 각 구현체가 여러개가 있다. 이 구현체를 사용하는 경우는 우리가 MVC패턴에 맞추어 코드를 작성하고, Test를 하기 위..
Spring
2022. 8. 17. 15:04