Spring Boot 自定义 Banner,让你的 Ban

🙏废话不多说系列,直接开整🙏

cat009.png


下面是 Spring Boot 自定义的 启动 Bannner。

image.png

自定义Banner步骤:

  1. 在resources目录下,新建文件 banner.txt;
  2. 使用自动生成Banner图标的网址生成,复制到 banner.txt 文件中即可。
* [patorjk.com/software/ta…](http://patorjk.com/software/taag)
* [www.network-science.de/ascii/](http://www.network-science.de/ascii/)
1
2
3
# 自定义spring boot的banner
1. 网址1: http://patorjk.com/software/taag
2. 网址2: http://www.network-science.de/ascii/

image.png
3. Spring Boot 的配置文件 application.yml 或者 bootstrap.yml;

1
2
3
4
5
spring:
main:
banner-mode: LOG # (CONSOLE/LOG/OFF)关闭 SpringBoot 启动的 banner 标签
banner:
location: banner.txt # 自定义 SpringBoot 启动的 banner 标签
  1. 输出结果:
1
2
3
4
5
6
___________                        _________                      __  .__    .__                 
__ ___/__.__.______ ____ / _____/ ____ _____ _____/ |_| |__ |__| ____ ____
| | < | |____ _/ __ \ _____ \ / _ \ / _/ __ \ __\ | | |/ \ / ___\
| | ___ || |_> > ___/ / ( <_> ) Y Y \ ___/| | | Y \ | | / /_/ >
|____| / ____|| __/ ___ > /_______ /____/|__|_| /___ >__| |___| /__|___| /___ /
/ |__| / / / / / //_____/

来源: patorjk.com/software/ta…


🙏至此,非常感谢阅读🙏

cat009.png

本文转载自: 掘金

开发者博客 – 和开发相关的 这里全都有

0%