@PostConstruct

@PostConstruct

  • @PostConstruct allows to perform initialization tasks on a bean right after all its necessary dependencies have been injected by Spring but before the bean is put to use
  • The method annotated with @PostConstruct must have no parameters, return void, and be public