:::: 개발 ::::/└ JSP & SPRING

@PostConstruct 어노테이션

nayha 2020. 11. 13. 14:35
반응형

@PostConstruct 어노테이션 설정해놓은

init 메소드는 WAS가 올라갈때 실행된다. 


 

    @PostConstruct
    private void init() {
        log.info("@PostConstruct ------ WAS 올라갈때 실행");
    }

 

 

출처 https://javaslave.tistory.com/48

반응형