In a Spring Boot application written in Kotlin it is possible to use both the init block or the @PostConstruct
JSR-250 lifecycle annotation to do something right after instantiation. What are the consequences of using one vs the other in a @Component
? Can there be any behavioral difference?
Similar question here.