공부
2024. 2. 18.
스프링에서 빈 등록 과정 분석해보기
SringApplication context = this.createApplicationContext(); context.setApplicationStartup(this.applicationStartup); this.prepareContext(bootstrapContext, context, environment, listeners, applicationArguments, printedBanner); this.refreshContext(context); this.afterRefresh(context, applicationArguments); 우리가 사용하는 SpringApplication이 실행되면 application context를 생성하고, 초기화 작업이 수행된다. 여기서 빈이 등록되는 부분은 thi..