Thursday, 8 August 2019

Spring Boot – How to disable the Spring logo banner using application.properties file?

🚀 Ready to Master Spring Boot?

Don't miss out on the latest Java tips and tricks! Join the Ram N Java community today.

SUBSCRIBE FOR FREE

Quickly Disable the Spring Boot Logo Banner

Every time you launch a new Spring Boot project, the large ASCII "Spring" banner appears in your console. While it looks cool, it can clutter your logs, especially in production or when you're trying to debug specific startup issues. In this guide, we'll show you the fastest way to turn it off using just one line of configuration.

Why Remove the Banner?

For beginners and pros alike, keeping your console clean is key to efficient development. Removing the banner helps you:

  • Reduce Noise: Focus immediately on your application logs.
  • Professionalism: Many production environments prefer minimal startup output.
  • Customization: It's the first step in making the framework feel like your own.

The One-Line Solution

You don't need to write complex code to do this. Simply navigate to your src/main/resources folder, open application.properties, and add this line:

spring.main.banner-mode=off

What Happens Next?

The next time you run your application, you'll notice that the Spring logo is gone! Your console will now jump straight into the logging information, saving you vertical space and making it much easier to read through the initialization steps of your beans and controllers.


Explore More From Ram N Java:

No comments:

Post a Comment

Tutorials