Spring Boot – Custom Banner

Home / Spring Boot / Spring Boot – Custom Banner

A Spring Boot application prints a banner during startup. This banner can be customized. This is shows you how to replace the default Spring’s banner below with your custom banner.

.   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.1.RELEASE)

Solution

1. To add a custom banner in Spring Boot application, create a banner.txt file and put it into the resources folder.

2. Review the content of banner.txt, you can generate from here.

 _______ _________ _______  _______           _______ 
(       )\__   __/(  ____ \(       )|\     /|(  ___  )
| () () |   ) (   | (    \/| () () || )   ( || (   ) |
| || || |   | |   | (__    | || || || (___) || (___) |
| |(_)| |   | |   |  __)   | |(_)| ||  ___  ||  ___  |
| |   | |   | |   | (      | |   | || (   ) || (   ) |
| )   ( |___) (___| (____/\| )   ( || )   ( || )   ( |
|/     \|\_______/(_______/|/     \||/     \||/     \|
                                                      

3. Start Spring Boot, the following output will be displayed.

Leave a Reply

Your email address will not be published. Required fields are marked *