From 2aea141e23f6d7a2c813d914aa298640df8c8df6 Mon Sep 17 00:00:00 2001
From: timyuer <524860213@qq.com>
Date: Mon, 3 Jun 2024 17:20:45 +0800
Subject: [PATCH] BIGTOP-4119: Add banner
---
bigtop-manager-agent/src/main/resources/application.yml | 4 ++++
bigtop-manager-agent/src/main/resources/banner.txt | 8 ++++++++
bigtop-manager-server/src/main/resources/application.yml | 4 ++++
bigtop-manager-server/src/main/resources/banner.txt | 8 ++++++++
pom.xml | 1 +
5 files changed, 25 insertions(+)
create mode 100644 bigtop-manager-agent/src/main/resources/banner.txt
create mode 100644 bigtop-manager-server/src/main/resources/banner.txt
diff --git a/bigtop-manager-agent/src/main/resources/application.yml b/bigtop-manager-agent/src/main/resources/application.yml
index 5c5cf75e..d2de797c 100644
--- a/bigtop-manager-agent/src/main/resources/application.yml
+++ b/bigtop-manager-agent/src/main/resources/application.yml
@@ -24,8 +24,12 @@ bigtop:
port: 8080
spring:
+ banner:
+ charset: utf-8
application:
name: bigtop-manager-agent
+ main:
+ banner-mode: log
server:
port: 8081
diff --git a/bigtop-manager-agent/src/main/resources/banner.txt b/bigtop-manager-agent/src/main/resources/banner.txt
new file mode 100644
index 00000000..3aed718b
--- /dev/null
+++ b/bigtop-manager-agent/src/main/resources/banner.txt
@@ -0,0 +1,8 @@
+
+ ____ ___ ____ _____ ___ ____ __ __ _ _ _ _ ____ _____ ____
+ | __ )_ _/ ___|_ _/ _ \| _ \ | \/ | / \ | \ | | / \ / ___| ____| _ \
+ | _ \| | | _ | || | | | |_) | | |\/| | / _ \ | \| | / _ \| | _| _| | |_) |
+ | |_) | | |_| | | || |_| | __/ | | | |/ ___ \| |\ |/ ___ \ |_| | |___| _ <
+ |____/___\____| |_| \___/|_| |_| |_/_/ \_\_| \_/_/ \_\____|_____|_| \_\
+
+:: Bigtop Manager Agent :: ${application.formatted-version}
\ No newline at end of file
diff --git a/bigtop-manager-server/src/main/resources/application.yml b/bigtop-manager-server/src/main/resources/application.yml
index fcdb9f10..06c1baba 100644
--- a/bigtop-manager-server/src/main/resources/application.yml
+++ b/bigtop-manager-server/src/main/resources/application.yml
@@ -24,8 +24,12 @@ bigtop:
type: eclipselink
spring:
+ banner:
+ charset: utf-8
application:
name: bigtop-manager-server
+ main:
+ banner-mode: log
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/bigtop_manager
diff --git a/bigtop-manager-server/src/main/resources/banner.txt b/bigtop-manager-server/src/main/resources/banner.txt
new file mode 100644
index 00000000..40556af4
--- /dev/null
+++ b/bigtop-manager-server/src/main/resources/banner.txt
@@ -0,0 +1,8 @@
+
+ ____ ___ ____ _____ ___ ____ __ __ _ _ _ _ ____ _____ ____
+ | __ )_ _/ ___|_ _/ _ \| _ \ | \/ | / \ | \ | | / \ / ___| ____| _ \
+ | _ \| | | _ | || | | | |_) | | |\/| | / _ \ | \| | / _ \| | _| _| | |_) |
+ | |_) | | |_| | | || |_| | __/ | | | |/ ___ \| |\ |/ ___ \ |_| | |___| _ <
+ |____/___\____| |_| \___/|_| |_| |_/_/ \_\_| \_/_/ \_\____|_____|_| \_\
+
+:: Bigtop Manager Server :: ${application.formatted-version}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index c7e82726..6d6d4989 100644
--- a/pom.xml
+++ b/pom.xml
@@ -176,6 +176,7 @@
**/*.ftl
**/*.log
pnpm-lock.yaml
+ **/banner.txt