Banner
1.简介
SpringBoot Logo 以及版本信息:${spring-boot.version} 、
${spring-boot.formatted-version},
参考 banner.txt 文件;
Banner 大全地址:https://www.bootschool.net/ascii-art
2.应用
将生成好的 banner.txt 文件放到 src/main/resources 下;
启动项目,控制台输出给定的 Log 及版本信息;
3.关闭 Banner
点击查看代码
@SpringBootApplication
public class JavaSpringBootApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(JavaSpringBootApplication.class); }
public static void main(String[] args) {
// SpringApplication.run(JavaSpringBootApplication.class, args);
SpringApplication springApplication = new SpringApplication(JavaSpringBootApplication.class);
springApplication.setBannerMode(Banner.Mode.OFF);
springApplication.run(args);
}