![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5yM2EDM3MWY0Y2YlBjYhFDOiN2M0MGNwkjMyADZwEjNj9CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.1.RELEASE)
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 圖檔能轉文本