Skip to content

Commit

Permalink
Fix #1495: Custom Spring Boot Banner (#1501)
Browse files Browse the repository at this point in the history
* Fix #1495: Custom Spring Boot Banner
  • Loading branch information
banterCZ authored Dec 19, 2023
1 parent 455fafa commit 207d0b8
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powerauth-nextstep/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ springdoc.default-produces-media-type=application/json
# Set the Spring application name
spring.application.name=powerauth-nextstep

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

logging.config=${POWERAUTH_NEXTSTEP_LOGGING:}
9 changes: 9 additions & 0 deletions powerauth-nextstep/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_ _ _ ____ _
| \ | | _____ _| |_/ ___|| |_ ___ _ __
| \| |/ _ \ \/ / __\___ \| __/ _ \ '_ \
| |\ | __/> <| |_ ___) | || __/ |_) |
|_| \_|\___/_/\_\\__|____/ \__\___| .__/
|_|
${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 @@ -40,4 +40,7 @@ springdoc.swagger-ui.disable-swagger-default-url=true
# Set the Spring application name
spring.application.name=powerauth-tpp-engine

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

logging.config=${POWERAUTH_TPP_ENGINE_LOGGING:}
9 changes: 9 additions & 0 deletions powerauth-tpp-engine/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_____ ____ ____ _____ _
|_ _| _ \| _ \ | ____|_ __ __ _(_)_ __ ___
| | | |_) | |_) | | _| | '_ \ / _` | | '_ \ / _ \
| | | __/| __/ | |___| | | | (_| | | | | | __/
|_| |_| |_| |_____|_| |_|\__, |_|_| |_|\___|
|___/
${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 @@ -29,6 +29,11 @@ spring.jackson.date-format=yyyy-MM-dd'T'HH:mm:ssZ
# Disable open session in view to avoid startup warning of Spring boot
spring.jpa.open-in-view=false

spring.application.name=powerauth-webflow-client

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

# Enable caching of static resources
spring.web.resources.cache.cachecontrol.max-age=86400

Expand Down
9 changes: 9 additions & 0 deletions powerauth-webflow-client/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__ __ _ _____ _ ____ _ _ _
\ \ / /__| |__ | ___| | _____ __ / ___| (_) ___ _ __ | |_
\ \ /\ / / _ \ '_ \| |_ | |/ _ \ \ /\ / / | | | | |/ _ \ '_ \| __|
\ V 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}
3 changes: 3 additions & 0 deletions powerauth-webflow/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,7 @@ springdoc.swagger-ui.disable-swagger-default-url=true
# Set the Spring application name
spring.application.name=powerauth-webflow

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

logging.config=${POWERAUTH_WEBFLOW_LOGGING:}
9 changes: 9 additions & 0 deletions powerauth-webflow/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__ __ _ _____ _
\ \ / /__| |__ | ___| | _____ __
\ \ /\ / / _ \ '_ \| |_ | |/ _ \ \ /\ / /
\ V 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 207d0b8

Please sign in to comment.