bjonnh
04/19/2019, 11:59 PMCzar
04/20/2019, 12:29 AMSystem.exit(0)
could be dangerous. I suggest using this instead: SpringApplication.exit(ctx)
bjonnh
04/20/2019, 3:29 PMCzar
04/20/2019, 4:21 PMSpringApplication.exit
first closes the context, properly calling all the shutdown hooks, then shuts down the application.bjonnh
04/20/2019, 4:55 PMbjonnh
04/20/2019, 6:42 PM