Spring Boot Custom Startup Banner

Customizing the banner at Spring Boot startup

Dario De Santis
Javarevisited

--

Photo by Kouji Tsuru on Unsplash

Hello guys! Today I want to show you a very nice feature that is customizing the banner showed on the console when a Spring application starts up. By default, Spring Boot comes with its default banner indicating the Spring Boot version we are using, as in the following image :

With Spring Boot we can create and use a banner like that above, using text with a custom message or title, and we can also customize the banner starting from a GIF image. I think it’s a nice feature because we can make unique our applications and give a touch of style to our server-side.

Create a Banner with Text

To create a banner made of text with a customized message, we can use a resource like this: https://www.messletters.com/en/big-text/. There are many sites doing this kind of conversion where we can input a custom message, choose our preferred style, and get the banner in output.

For this demo, I’ve created a banner like the image above simply going to the link I’ve shared before, inserted the “Hello World” message and chosen the “banner” style. Then I’ve selected and copied all the resulting text into a file called banner.txt .

--

--

Dario De Santis
Javarevisited

Software Architect, writing about Java, Spring, Microservices, Kubernetes and Cloud-native programming. Editor for Javarevisited.