banner

banner.txt

${text}

sssss

application.properties

# org.springframework.boot.SpringApplicationBannerPrinter
# 文字版banner
spring.banner.location=banner.txt
# 图片版banner  gif/png/jpg
#spring.banner.image.location=banner.png
# 关闭banner
#spring.main.banner-mode=off

spring.banner.charset=utf-8

text=ABCD

默认会打印springboot图+版本+带颜色的文字

    //打印颜色字体
     System.out.println("\u001B[32m spring");
posted @ 2020-04-15 08:57  fly_bk  阅读(171)  评论(0编辑  收藏  举报