How to change the Spring Boot banner in your project?

In this post, I am going to share a two-step approach to change the Spring Boot banner in your project.

Create Your Own(Customized) Spring Boot Banner

Create your customized Spring Boot banner in .txt file format.

Here is an example for your reference.

Filename: banner.txt

*                                                                        *
*               HELLO THIS IS MY AWESOME PROJECT                         *
*                               WWW.BHUTANIO.COM                         *
*                                                                        *
************************************************************************** Code language: CSS (css)

Add Spring Boot banner path in file

The next step is to customize your file.


For simplicity, I keep the file banner file in the resources directory (the directory where you keep your project’s initial database ).

If you keep the banner file in the resources directory, and if the banner file’s name with file extension is banner.txt, then the classpath of your banner file would look something like this:


Sample Output

Here is how your Spring Boot banner would look like:

Customized Spring Boot banner screenshot

Leave a Reply

Discover more from BHUTAN IO

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top