[Spring] 스프링 컨테이너와 스프링 빈(BeanFactory, ApplicationContext)
·
Back-end/Spring
스프링 컨테이너와 스프링 빈ApplicationContext는 스프링 컨테이너고 인터페이스이다.new AnnotationConfigApplicationContext(AppConfig.class);는 ApplicationContext 인터페이스 구현체이다.AppConfig는 스프링 컨테이너의 구성 정보를 설정하는 설정 파일이다.스프링 컨테이너 생성ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class); 스프링 컨테이너를 생성한다.AnnotationConfigApplicationContext는 스프링 컨테이너 구현체이다.AppConfig.class는 스프링 컨테이너 구성 정보 설정 파일이다.구..