其他分享
首页 > 其他分享> > 关闭和修改SpringBoot启动Logo

关闭和修改SpringBoot启动Logo

作者:互联网

1.关闭SpringBoot Logo图标及启动日志


package com.abc.springboot;
​
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
​
@SpringBootApplication
public class Application {
​
    public static void main(String[] args) {
​
        SpringApplication springApplication = new SpringApplication(Application.class);
​
        //关闭启动logo和启动日志的输出
        springApplication.setBannerMode(Banner.Mode.OFF);
        springApplication.run(args);
​
    }​
}

2.修改启动的logo图标

标签:SpringBoot,启动,import,boot,springApplication,关闭,logo,Logo,图标
来源: https://blog.csdn.net/Brave_boy678/article/details/120454171