Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. package br.com.condessalovelace.springbootapp;
  2.  
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.context.ConfigurableApplicationContext;
  6.  
  7. @SpringBootApplication
  8. public class SpringbootappApplication {
  9. private static ConfigurableApplicationContext ctx;
  10.  
  11. public static void main(String[] args) {
  12. ctx = SpringApplication.run(SpringbootappApplication.class, args);
  13. }
  14.  
  15. public static void shutDown() {
  16. ctx.close();
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement