From 8f5a4f2e0ebde91f4ba25bf021f9b5b87ebb00ec Mon Sep 17 00:00:00 2001 From: nekolr Date: Thu, 28 Dec 2023 17:42:04 +0800 Subject: [PATCH] fix: banner --- src/main/resources/banner.txt | 2 +- src/main/resources/config/application.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index 0c73094..030e5c7 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -2,4 +2,4 @@ ( (` / /\ | |_) | |_ | |_) _)_) /_/--\ |_|_) |_|__ |_| \ - :: ${application.title} ::${application.formatted-version} + :: ${info.app.name} ::${info.app.version} diff --git a/src/main/resources/config/application.yml b/src/main/resources/config/application.yml index edb5b2f..6d710bb 100644 --- a/src/main/resources/config/application.yml +++ b/src/main/resources/config/application.yml @@ -59,3 +59,8 @@ storage: imgFolder: ${user.home}/saber/images/ # 图片缓存时间控制,可以带单位 cacheTime: 7d + +info: + app: + name: @project.artifactId@ + version: @project.version@ \ No newline at end of file