1、控制台出现logo图标
2、如果不喜欢,如何去除这个logo
在其Application中进行设置
1 package com.springboot.logo; 2 3 import org.springframework.boot.Banner; 4 import org.springframework.boot.SpringApplication; 5 import org.springframework.boot.autoconfigure.SpringBootApplication; 6 7 @SpringBootApplication 8 public class Application { 9 10 public static void main(String[] args) { 11 // SpringApplication.run(Application.class, args); 12 13 SpringApplication springApplication = new SpringApplication(Application.class); 14 springApplication.setBannerMode(Banner.Mode.OFF); 15 springApplication.run(args); 16 17 18 } 19 }
打印效果:
3、源码地址
https://github.com/liushaoye/10-close-logo/tree/master