🔨 修改 spring 应用名称.

This commit is contained in:
lijiahang
2024-06-17 10:13:23 +08:00
parent f618aef988
commit dfd2ec45f4
5 changed files with 11 additions and 8 deletions

View File

@@ -16,7 +16,10 @@ public interface AppConst extends OrionConst {
*/
String VERSION = "2.0.8";
String ORION_VISOR = "orion-visor";
/**
* 同 ${spring.application.name}
*/
String APP_NAME = "orion-visor";
String GITHUB = "https://github.com/dromara/orion-visor";

View File

@@ -47,7 +47,7 @@ public class PathUtils {
public static String getAppPath(boolean isWindows, String username) {
return getHomePath(isWindows, username)
+ "/" + AppConst.ORION
+ "/" + AppConst.ORION_VISOR;
+ "/" + AppConst.APP_NAME;
}
/**

View File

@@ -51,7 +51,7 @@ public class BannerApplicationRunner implements ApplicationRunner {
@Override
public void run(ApplicationArguments args) {
AnsiAppender appender = AnsiAppender.create()
.append(AnsiForeground.BRIGHT_GREEN, ":: orion-visor-launch v" + version + " 服务已启动(" + env + ") ::\n");
.append(AnsiForeground.BRIGHT_GREEN, ":: orion-visor v" + version + " 服务已启动(" + env + ") ::\n");
// swagger 地址
if (apiDocsEnabled) {
appender.append(AnsiForeground.BRIGHT_GREEN, ":: swagger 文档 ")