The Right Why Database Seeder with kotlin x spring boot
today I'm learning build API using kotlin and spring boot. In rails and laravel have a "tool" for database seeder like seed in rails or laravel application, I want to know in kotlin and spring boot, I have been searched on google before and found this answer https://stackoverflow.com/a/45324578/1297435, in spring boot we can use @EventListerner like
@EventListener
public void userSeeder(ContextRefreshedEvent event) {
//...