Skip to content

Instantly share code, notes, and snippets.

@mengjiann
Created March 24, 2019 07:40
Show Gist options
  • Save mengjiann/eec093d884cd402f48785a01de1a8bd7 to your computer and use it in GitHub Desktop.
Save mengjiann/eec093d884cd402f48785a01de1a8bd7 to your computer and use it in GitHub Desktop.
Terminate Spring boot application
SpringApplication springApplication = new SpringApplicationBuilder()
.sources(<class name>.class).web(false).build();
springApplication.run(args).close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment