天天看点

SpringBoot: 启动Banner在线生成工具banner.txt在线制作banner的网站

SpringBoot: 启动Banner在线生成工具banner.txt在线制作banner的网站
SpringBoot: 启动Banner在线生成工具banner.txt在线制作banner的网站
我们在启动 SpringBoot 时,控制台会打印 SpringBoot Logo 以及版本信息;这个操作是可以通过 SpringBoot的banner自定义实现

.   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.1.RELEASE)      
SpringBoot: 启动Banner在线生成工具banner.txt在线制作banner的网站

org.springframework.boot.ResourceBanner

文本格式,SpringBoot 会读取配置项

banner.txt

banner.location

,从配置项中获取真实的文件地址;如果配置中没有配置,会把配置项作为文件去加载;

org.springframework.boot.ImageBanner

图片格式,SpringBoot 加载配置项

banner.image.location

,从配置项中获取真实的路径,SpringBoot 会根据配置项的路径加载文件。

如果没有配置

banner.image.location

,转而依次加载

banner.gif

banner.jpg

banner.png

这三个中存在的文件;

如果上面两种都没有配置,SpringBoot 就会加载默认的 Banner;也就是文章开头介绍的方式。

banner.txt

  在SpringBoot项目的resources目录下新建一个banner.txt文本文件,然后将启动Banner粘贴到此文本文件中,启动项目即可。

在线制作banner的网站

纯字体

http://patorjk.com/software/taag/ https://www.bootschool.net/ascii http://www.network-science.de/ascii/

图片风

https://www.degraeve.com/img2txt.php https://www.bootschool.net/ascii-art/animals 图片能转文本