Init method in Spring Controller (annotation version) November 5, 2022 by Tarik You can use @PostConstruct public void init() { // ... }