Description
The banner that is printed on start up can be changed by adding a banner.txt file to your classpath, or by setting banner.location to the location of such a file. If the file has an unusual encoding you can set banner.charset (default is UTF-8). In addition to a text file, you can also add a banner.gif, banner.jpg or banner.png image file to your classpath, or set a banner.image.location property. Images will be converted into an ASCII art representation and printed above any text banner.
Spring Boot 允许我们使用自定义的Banner,可以是文本或者图片格式,不过最终都会以ASCII的形式展现出来。你可以通过修改本项目resources
目录下的banner.txt
内的文本来更改它,下面这三个地址可以帮助你生成ASCII格式的文本。
- http://patorjk.com/software/taag
- http://www.network-science.de/ascii/
- http://www.degraeve.com/img2txt.php
更多关于Banner的信息,可以看看Spring Boot官方文档关于它的介绍,地址:http://docs.spring.io/spring-boot/docs/1.5.5.BUILD-SNAPSHOT/reference/htmlsingle/#boot-features-banner