修改banner
1.在src/main/resources 下建立banner.txt

2.通過 http://patorjk.com/software/taag 選擇自己喜歡文字
3.複制網站中的結果,粘貼到建立的txt中
4.啟動SpringBoot
停用banner的三種方法
1. main 裡的内容修改為:
SpringApplication app
= new SpringApplication(xxxxxx.class);
app.setShowBanner(false);
app.run(args);
2. 使用fluent API 修改為:
new SpringApplicationBuilder(xxxxxx.class)
.showBanner(false)
.run(args);
3. 在 application.yml 或 application.properties檔案中配置
在
.yml
中配置如下:
spring:
main:
banner-mode: "off"
在
.properties
檔案中配置如下
spring.main.banner-mode = off