Published
- 1 min read
kotlin spring boot run code after component init
The solution for this is noted below
kotlin spring boot run code after component init
Solution
@EventListener(ApplicationReadyEvent::class)
fun doSomethingAfterStartup() {
testApp.subscribers + devices
}
Try other methods by searching on the site. That is if this doesn’t work