Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.com.condessalovelace.springbootapp;
- import org.springframework.boot.SpringApplication;
- import org.springframework.boot.autoconfigure.SpringBootApplication;
- import org.springframework.context.ConfigurableApplicationContext;
- @SpringBootApplication
- public class SpringbootappApplication {
- private static ConfigurableApplicationContext ctx;
- public static void main(String[] args) {
- ctx = SpringApplication.run(SpringbootappApplication.class, args);
- }
- public static void shutDown() {
- ctx.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement