Init method in Spring Controller (annotation version)

You can use

@PostConstruct
public void init() {
   // ...
}

Leave a Comment