Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1495: Custom Spring Boot Banner #1501

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
[email protected]@

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}
[email protected]@

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}
[email protected]@

# 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}
[email protected]@

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}