Skip to Content
Suffering builds character
아카이브16.스프링 DI,MVC특징의존성 주입4. 스프링 컨테이너 구성

4. 스프링 컨테이너 구성

스프링 기술문서에는 스프링 컨테이너를 구성하기 위해 아래와 같이 설명하고 있음

The org.springframework.context.ApplicationContext interface represents the Spring IoC container and is responsible for instantiating, configuring, and assembling the beans.

org.springframework.context.ApplicationContext 인터페이스를 통해 스프링 빈을 초기화하고 관리하는 스프링 컨테이너(IoC Container)를 구성할 수 있음

The container gets its instructions on the components to instantiate, configure, and assemble by reading configuration metadata. The configuration metadata can be represented as annotated component classes, configuration classes with factory methods, or external XML files or Groovy scripts. With either format, you may compose your application and the rich interdependencies between those components.

→ 이러한 컨테이너는 해당 컨테이너의 생성과 관련된 메타 정보가 구성된 설정 파일(Configuration metadata)을 통해 생성됨

Note

설정 파일, Configuration metadata

설정 파일은 외부 .XML 파일이나 @annotation과 같은 Annotation 문법 등으로 구성된 .java 파일로 구성할 수 있으며, 주로 애플리케이션의 동작에 필요한 스프링 빈에 대한 정보를 기술함

Last updated on