Home > AI > Backend > SpringBoot >

disable the SpringBoot banner

Method 1: application.properties

spring.main.banner-mode=off

Method 2: application.yml

spring:
  main:
    banner-mode: "off"

Method 3: Code

@SpringBootApplication
public class Demo12Application {


	public static void main(String[] args) {

        SpringApplication app = new SpringApplication(Demo12Application.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);

	}

}

Method 4: Code

@SpringBootApplication
public class Demo12Application {


	public static void main(String[] args) {

        new SpringApplicationBuilder(Demo12Application.class)
                .bannerMode(Banner.Mode.OFF)
                .run(args);

	}

}

Change banner text

application.properties

spring.banner.location=classpath:/banner.txt

banner.txt

TUTEHUB








Leave a Reply