InitializingBean은 Spring Framework의 빈 생명주기(Bean LifeCycle) 인터페이스 중 하나public interface InitializingBean {
void afterPropertiesSet() throws Exception;
}
Spring Bean이 생성될 때의 순서를 보면 이 인터페이스의 위치가 명확해짐
postProcessBeforeInitialization 실행 (여기서 @PostConstruct가 처리됨)afterPropertiesSet() 실행init-method 실행 (@Bean(initMethod = ""))postProcessAfterInitiailzation 실행장점 : 명시적인 초기화 보장
단점 : 프레임워크 종속성
PostConstruct를 사용하면 Spring 종속성을 줄이면서 동일한 효과를 낼 수 있음