From b3b15a4018cef60d0098a1be92e753c4473e4bb5 Mon Sep 17 00:00:00 2001 From: nekolr Date: Thu, 28 Dec 2023 17:03:50 +0800 Subject: [PATCH] fix: banner --- src/main/resources/application.yaml | 5 +++++ src/main/resources/banner.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 0c5b567..54c3d82 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -33,3 +33,8 @@ jwt: period: 1800s cors: allowOrigin: ${ALLOW_ORIGIN:http://localhost:8962} + +info: + app: + name: @project.artifactId@ + version: @project.version@ diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index 4eca55b..b78a808 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -3,4 +3,4 @@ | |_) | |_ / /\ ( (` | |_| / / \ / / \ | | | |_ | |_) |_| |_|__ /_/--\ _)_) |_| | \_\_/ \_\_/ |_| |_|__ |_| \ - :: ${application.title} ::${application.formatted-version} + :: ${info.app.name} ::${info.app.version}