[스프링] ApplicationContext 스프링 컨테이너 구동

2021. 10. 6. 13:21spring

ApplicationContext(또는 BeanFactory)는 빈 객체의 생성, 초기화, 보관, 제거 등을 관리하고 있어서 ApplicationContext를 컨테이너라고도 부른다.

 

1. 스프링 설정 파일 생성

src/main/resources -> Spring Bean Configuration File -> File name: applicationContext.xml

2. 스프링컨테이너 구동

 구현 클래스: GenericXmlApplicationContext 

 

'spring' 카테고리의 다른 글

[AOP] xml 기반  (0) 2021.10.07
[어노테이션]  (0) 2021.10.06
[의존성주입] Setter 인젝션  (0) 2021.10.06
[의존성주입] 생성자 인젝션  (0) 2021.10.06
[스프링] 환경설정하기  (0) 2021.10.05