is there a way to do that?
# spring
b
is there a way to do that?
c
Assuming more or less recent Spring Boot:
Copy code
@Service
class CountingService(
    private val ctx: ConfigurableApplicationContext
) {
    fun countEntries() {
        // do your thing
        SpringApplication.exit(ctx)
    }
}
­čĹŹ 1
b
I'm using the last version so that should work, will test it later today. Thanks!