生成器:
http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20
通過在classpath下添加一個banner.txt或設置banner.location來指定相應的文件可以改變啟動過程中打印的banner。如果這個文件有特殊的編碼,你可以使用banner.encoding設置它(默認為UTF-8)。除了文本文件,你也可以添加一個banner.gif,banner.jpg或banner.png圖片,或設置banner.image.location屬性。圖片會轉換為字符畫(ASCII art)形式,並在所有文本banner上方顯示。
變量 | 描述 |
---|---|
${application.version} | MANIFEST.MF中聲明的應用版本號,例如Implementation-Version: 1.0會打印1.0 |
${application.formatted-version} | MANIFEST.MF中聲明的被格式化后的應用版本號(被括號包裹且以v作為前綴),用於顯示,例如(v1.0) |
${spring-boot.version} | 當前Spring Boot的版本號,例如1.4.1.RELEASE |
${spring-boot.formatted-version} | 當前Spring Boot被格式化后的版本號(被括號包裹且以v作為前綴), 用於顯示,例如(v1.4.1.RELEASE) |
${Ansi.NAME}(或${AnsiColor.NAME},${AnsiBackground.NAME}, ${AnsiStyle.NAME}) | NAME代表一種ANSI編碼,具體詳情查看AnsiPropertySource |
${application.title} | MANIFEST.MF中聲明的應用title,例如Implementation-Title: MyApp會打印MyApp |