1、控制台出现logo图标
2、如果不喜欢,如何去除这个logo
在其Application中进行设置
package com.springboot.logo; 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.run(Application.class, args); SpringApplication springApplication = new SpringApplication(Application.class);
springApplication.setBannerMode(Banner.Mode.OFF);
springApplication.run(args); }
}
打印效果:
3、源码地址
https://github.com/liushaoye/10-close-logo/tree/master