Skip to content

Commit

Permalink
Fix #170: Custom Spring Boot Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Dec 13, 2023
1 parent 13b4406 commit 9fdbb2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spring.jpa.hibernate.ddl-auto=none
# Set JMX default domain in case JMX is enabled, otherwise the application startup fails due to clash in JMX bean names
spring.jmx.default-domain=mobile-utility-server

spring.application.name=mobile-utility-server
banner.application.name=${spring.application.name}
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
10 changes: 10 additions & 0 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
__ __ _ _ _ _ _ _ _ _ _ _ ____
| \/ | ___ | |__ (_) | ___ | | | | |_(_) (_) |_ _ _ / ___| ___ _ ____ _____ _ __
| |\/| |/ _ \| '_ \| | |/ _ \ | | | | __| | | | __| | | | \___ \ / _ \ '__\ \ / / _ \ '__|
| | | | (_) | |_) | | | __/ | |_| | |_| | | | |_| |_| | ___) | __/ | \ 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 9fdbb2c

Please sign in to comment.