SpringBoot : How to disable the Application Banner

How to disable the Application Banner 

You can disable the application banner using the following ways
  • You can diable by adding following in application.properties file

    spring.main.web_environment=false
    spring.main.banner_mode=off
    
  • You can disable the same by adding the following code to your main Application class.

        public static void main(String[] args) {
            new SpringApplicationBuilder()
                    .showBanner(false)
                    .sources(Application.class)
                    .run(args);
        }
    
By following any of the above steps you can disable the banner in the spring boot application.


No comments:

Powered by Blogger.