(싱글톤) 스프링 빈의 이벤트 라이프사이클
implements InitializingBean
→ afterPropertiesSet
@Bean(initMethod = “myInitMethod“)
@PostConstruct
빈 사용
소멸전 콜백
implements DisposableBean
→ destroy
@Bean(destroyMethod = “myDestoryMethod“)
+ 추론기능 (close
, shutdown
)@PreDestory