Skip to content

Commit

Permalink
Merge pull request #175 from /issues/170-custom-banner
Browse files Browse the repository at this point in the history
Fix #170: Custom Spring Boot Banner
  • Loading branch information
banterCZ authored Dec 14, 2023
2 parents 13b4406 + 9fdbb2c commit 7227e8d
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 7227e8d

Please sign in to comment.