how to disable spring boot logo in stdout?

后端 未结 8 678
名媛妹妹
名媛妹妹 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:53

    You can set spring.main.show_banner=false in your application.properties as described in http://docs.spring.io/spring-boot/docs/current/reference/html/howto-properties-and-configuration.html.

    0 讨论(0)
  • 2021-01-30 20:06

    To remove this:

    1) spring.main.banner-mode=off

    Add above line in the file

    application.properties
    

    OR

    2) USE this in Main java class

    setBannerMode(Banner.Mode.OFF);
    

    OR

    3) in-app*.yml file

    spring:
            main :
                   banner-mode=off
    

    User This Link for More Details

    http://mytechnologythought.blogspot.com/2017/07/how-to-remove-spring-boot-banner.html

    0 讨论(0)
提交回复
热议问题