启动输出调整.

This commit is contained in:
aoshiguchen
2024-11-04 16:37:23 +08:00
parent 249dd5ec12
commit 50afac643e
4 changed files with 38 additions and 6 deletions
@@ -28,8 +28,6 @@ public class ProxyClient {
setAlias("neutrino.proxy.tunnel.jks-path", "jksPath");
setAlias("neutrino.proxy.tunnel.key-store-password", "keyStorePassword");
setAlias("neutrino.proxy.tunnel.license-key", "licenseKey");
log.info("NeutrinoProxy Client {}", app.cfg().get("solon.app.version"));
});
}
@@ -0,0 +1,35 @@
package org.dromara.neutrinoproxy.client.config;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.Solon;
import org.noear.solon.annotation.Component;
import org.noear.solon.core.event.AppLoadEndEvent;
import org.noear.solon.core.event.EventListener;
import org.noear.solon.core.runtime.NativeDetector;
/**
* 启动成功后信息输出
* @author: aoshiguchen
* @date: 2024/10/16
*/
@Slf4j
@Component
public class AppLoadEndExecutor implements EventListener<AppLoadEndEvent> {
@Override
public void onEvent(AppLoadEndEvent appLoadEndEvent) throws Throwable {
// aot 阶段,不执行
if (NativeDetector.isAotRuntime()) {
return;
}
System.out.printf("""
---------------------------------------------------------------
Neutrino Proxy Client %s
Gitee: https://gitee.com/dromara/neutrino-proxy
GitHub: https://github.com/dromara/neutrino-proxy
GitCode: https://gitcode.com/dromara/neutrino-proxy
---------------------------------------------------------------
%n""", Solon.app().cfg().get("solon.app.version"));
}
}
@@ -3,7 +3,7 @@ solon:
add: ./app.yml
app:
name: neutrino-proxy-client
version: 2.0.1
version: 2.0.2
# 日志级别
solon.logging.appender:
console:
@@ -8,7 +8,7 @@ import org.noear.solon.core.event.EventListener;
import org.noear.solon.core.runtime.NativeDetector;
/**
* 初始化数据库
* 启动成功后信息输出
* @author: aoshiguchen
* @date: 2024/10/16
*/
@@ -24,8 +24,7 @@ public class AppLoadEndExecutor implements EventListener<AppLoadEndEvent> {
}
System.out.printf("""
---------------------------------------------------------------
Neutrino Proxy
version: %s
Neutrino Proxy Server %s
admin: http://localhost:8888
account: admin/123456
Gitee: https://gitee.com/dromara/neutrino-proxy