Commit 3be87802 authored by minminyan's avatar minminyan

添加setRegisterShutdownHook

parent 598850b9
...@@ -35,6 +35,7 @@ public class Bootstrap { ...@@ -35,6 +35,7 @@ public class Bootstrap {
log.info("注册zookeeper成功"); log.info("注册zookeeper成功");
} }
}); });
springApplication.setRegisterShutdownHook(true);
springApplication.run(args); springApplication.run(args);
log.info("server start..."); log.info("server start...");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment