From 38edcbebb7577d88ffe165516e4e3f71280cfe16 Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Fri, 24 Jun 2022 19:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=99=A8=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=B0=83=E6=95=B4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fun/asgc/neutrino/core/launcher/NeutrinoLauncher.java | 6 ++++-- neutrino-proxy-client/src/main/resources/application.yml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/neutrino-core/src/main/java/fun/asgc/neutrino/core/launcher/NeutrinoLauncher.java b/neutrino-core/src/main/java/fun/asgc/neutrino/core/launcher/NeutrinoLauncher.java index aea7ad38..c96ea430 100644 --- a/neutrino-core/src/main/java/fun/asgc/neutrino/core/launcher/NeutrinoLauncher.java +++ b/neutrino-core/src/main/java/fun/asgc/neutrino/core/launcher/NeutrinoLauncher.java @@ -51,7 +51,6 @@ public class NeutrinoLauncher { public static void runSync(final Class clazz, final String[] args) { run(clazz, args).sync(); - log.info("Application already stop."); } private NeutrinoLauncher(Class clazz, String[] args) { @@ -66,7 +65,10 @@ public class NeutrinoLauncher { environmentInit(); this.applicationContainer = new DefaultApplicationContainer(environment); - SystemUtil.RunContext runContext = SystemUtil.waitProcessDestroy(() -> this.applicationContainer.destroy()); + SystemUtil.RunContext runContext = SystemUtil.waitProcessDestroy(() -> { + this.applicationContainer.destroy(); + log.info("Application already stop."); + }); stopWatch.stop(); printLog(environment, stopWatch); diff --git a/neutrino-proxy-client/src/main/resources/application.yml b/neutrino-proxy-client/src/main/resources/application.yml index 15dcf526..6aa313fd 100644 --- a/neutrino-proxy-client/src/main/resources/application.yml +++ b/neutrino-proxy-client/src/main/resources/application.yml @@ -14,6 +14,7 @@ proxy: client: key-store-password: 123456 jks-path: classpath:/test.jks - server-ip: localhost +# server-ip: localhost + server-ip: 122.51.22.55 server-port: 9000 ssl-enable: false