Skip to content

Commit

Permalink
Merge pull request #1170 from /issues/1169-custom-banner
Browse files Browse the repository at this point in the history
Fix #1169: Custom Spring Boot Banner
  • Loading branch information
banterCZ authored Dec 5, 2023
2 parents c08cb1b + 06fcb2d commit e9d71b5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powerauth-admin/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ powerauth.admin.service.applicationName=powerauth-admin
powerauth.admin.service.applicationDisplayName=PowerAuth Admin
powerauth.admin.service.applicationEnvironment=

banner.application.name=${powerauth.admin.service.applicationName}
banner.application.version=@project.version@

# Disable open session in view to avoid startup warning of Spring boot
spring.jpa.open-in-view=false

Expand Down
9 changes: 9 additions & 0 deletions powerauth-admin/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
____ _ _ _ _ _ _
| _ \ _____ _____ _ __ / \ _ _| |_| |__ / \ __| |_ __ ___ (_)_ __
| |_) / _ \ \ /\ / / _ \ '__/ _ \| | | | __| '_ \ / _ \ / _` | '_ ` _ \| | '_ \
| __/ (_) \ V V / __/ | / ___ \ |_| | |_| | | | / ___ \ (_| | | | | | | | | | |
|_| \___/ \_/\_/ \___|_|/_/ \_\__,_|\__|_| |_| /_/ \_\__,_|_| |_| |_|_|_| |_|

${AnsiColor.GREEN} :: ${banner.application.name} (${banner.application.version}) :: ${AnsiColor.GREEN}
${AnsiColor.RED} :: Spring Boot${spring-boot.formatted-version} :: ${AnsiColor.RED}
${AnsiColor.DEFAULT}
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ springdoc.swagger-ui.disable-swagger-default-url=true
# Set the Spring Boot application name
spring.application.name=powerauth-java-server

banner.application.name=${spring.application.name}
banner.application.version=@project.version@

# Configure Spring Cloud Vault Properties
spring.cloud.vault.enabled=false
spring.cloud.vault.kv.enabled=true
Expand Down
9 changes: 9 additions & 0 deletions powerauth-java-server/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
____ _ _ _ ____
| _ \ _____ _____ _ __ / \ _ _| |_| |__ / ___| ___ _ ____ _____ _ __
| |_) / _ \ \ /\ / / _ \ '__/ _ \| | | | __| '_ \ \___ \ / _ \ '__\ \ / / _ \ '__|
| __/ (_) \ V V / __/ | / ___ \ |_| | |_| | | | ___) | __/ | \ V / __/ |
|_| \___/ \_/\_/ \___|_|/_/ \_\__,_|\__|_| |_| |____/ \___|_| \_/ \___|_|

${AnsiColor.GREEN} :: ${banner.application.name} (${banner.application.version}) :: ${AnsiColor.GREEN}
${AnsiColor.RED} :: Spring Boot${spring-boot.formatted-version} :: ${AnsiColor.RED}
${AnsiColor.DEFAULT}

0 comments on commit e9d71b5

Please sign in to comment.