springboot关闭启动时打印spring图标标志日志

springboot启动时会打印spring标志日志如下:
springboot关闭启动时打印spring图标标志日志_第1张图片
下面是关闭方法:


import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@SpringBootApplication
public class TestApplication {

    public static void main(String[] args) {
    	//这里的TestApplication 是当前工程的启动类名
        SpringApplication springApplication = new SpringApplication(TestApplication.class);
        //关闭启动logo和启动日志的输出
        springApplication.setBannerMode(Banner.Mode.OFF);
        springApplication.run(args);
    }

}

你可能感兴趣的:(springboot,spring,boot)