how to disable spring boot logo in stdout?

后端 未结 8 758
名媛妹妹
名媛妹妹 2021-01-30 19:08

Is there a way to disable the lovely but very visible ASCII Spring boot logo :

  .   ____          _            __ _ _
 /\\\\ / ___\'_ __ _ _(_)_ __  __ _ \\ \\          


        
8条回答
  •  無奈伤痛
    2021-01-30 19:41

    This has changed slightly in Spring Boot 1.3. The property is now:

    spring.main.banner_mode=off
    

    In code, it is now:

    springApplication.setBannerMode(Banner.Mode.OFF);
    

    or using the builder:

    new SpringApplicationBuilder()
    .bannerMode(Banner.Mode.OFF)
    

提交回复
热议问题