생성과정
![[Spring] 스프링 컨테이너](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FqukZg%2FbtrputDeIvs%2FK8N57VnKX3EPwPEvk9jy20%2Fimg.png)
[Spring] 스프링 컨테이너
스프링 컨테이너 생성 스프링 컨테이너를 생성할 때는 ApplicationContext라는 인터페이스를 이용하며, 상황에 맞는 구현 객체를 생성해주면 된다. 스프링 부트의 등장 이후 Annotation을 많이 사용하기 때문에 AnnotationConfigApplicationContext를 주로 이용한다. 인자로는 @Configuration 어노테이션이 붙은 설정 클래스 파일을 넘겨주면 된다. ApplicationContext ac = new AnnotationConfigApplicationContext(Config.class); 스프링 컨테이너의 생성 과정 스프링 컨테이너를 생성할 때 매개 변수로 Configuration 클래스 파일을 넘겨주는데, 스프링 컨테이너는 이 클래스 파일을 참고하여 빈 이름과 객..