实现的方式非常简单,我们只需要在Spring Boot工程的/src/main/resources目录下创建一个banner.txt文件,然后将ASCII字符画复制进去,就能替换默认的banner了。
下面打印一下hello word
${
AnsiColor.BRIGHT_GREEN}
.__ .__ .__ .___
| |__ ____ | | | | ____ __ _ _____________ __| _/
| | \_/ __ \| | | | / _ \ \ \/ \/ / _ \_ __ \/ __ |
| Y \ ___/| |_| |_( <_> ) \ ( <_> ) | \/ /_/ |
|___| /\___ >____/____/\____/ \/\_/ \____/|__| \____ |
\/ \/ \/
${
AnsiColor.BRIGHT_RED}
Application Version: ${
application.version}${
<