springboot项目启动增加图标

  • 首先我们在resource目录下面放入一个banner.txt文件,Spring Boot启动项目的时候就会优先启动这个文件中的内容。

  • 然后我们用在线生成字符图标工具

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

然后我的项目叫 consumer然后我生成了 图标

 ######   #######  ##    ##  ######  ##     ## ##     ## ######## ########
##    ## ##     ## ###   ## ##    ## ##     ## ###   ### ##       ##     ##
##       ##     ## ####  ## ##       ##     ## #### #### ##       ##     ##
##       ##     ## ## ## ##  ######  ##     ## ## ### ## ######   ########
##       ##     ## ##  ####       ## ##     ## ##     ## ##       ##   ##
##    ## ##     ## ##   ### ##    ## ##     ## ##     ## ##       ##    ##
 ######   #######  ##    ##  ######   #######  ##     ## ######## ##     ## 

配置文件如下

${AnsiColor.BLUE}
 ######   #######  ##    ##  ######  ##     ## ##     ## ######## ########
##    ## ##     ## ###   ## ##    ## ##     ## ###   ### ##       ##     ##
##       ##     ## ####  ## ##       ##     ## #### #### ##       ##     ##
##       ##     ## ## ## ##  ######  ##     ## ## ### ## ######   ########
##       ##     ## ##  ####       ## ##     ## ##     ## ##       ##   ##
##    ## ##     ## ##   ### ##    ## ##     ## ##     ## ##       ##    ##
 ######   #######  ##    ##  ######   #######  ##     ## ######## ##     ## 
${AnsiColor.BRIGHT_RED}
::: Spring-Boot ${spring-boot.version}

参考 :https://blog.csdn.net/azhong148/article/details/78872325

原文地址:https://www.cnblogs.com/fb010001/p/14610446.html