SpringBoot 自定义Banner

wsyjlly 2019-08-13

php

SpringBoot自定义Banner

官方提供的application.yml的banner配置信息

# BANNER
spring.banner.charset=UTF-8 # Banner file encoding.
spring.banner.location=classpath:banner.txt # Banner text resource location.
spring.banner.image.location=classpath:banner.gif # Banner image file location (jpg or png can also be used).
spring.banner.image.width=76 # Width of the banner image in chars.
spring.banner.image.height= # Height of the banner image in chars (default based on image height).
spring.banner.image.margin=2 # Left hand image margin in chars.
spring.banner.image.invert=false # Whether images should be inverted for dark terminal themes.

在resource文件夹下放一个以“banner.txt”命名的文件,文件中是你要显示的banner字符图案

图案生成地址:

    ____    __       ___   __   _____     _     ____     _____   __   __
|  |    |  |  )  ____) (  (  )  )   (_   | \   |    \   |    (  (  )  ) 
|  |    |  | (  (___    \  \/  /      |  |  |  |     |  |     \  \/  /  
|  |    |  |  \___  \    \    /    _  |  |  |  |     |  |      \    /   
 \  \/\/  /   ____)  )    )  /    ( |_|  |  |  |__   |  |__     )  /    
__\      /___(      (____/  (______\    /__/      )_/      )___/  (_____

.-.   .-.  .---. .-.  .-.
 \ \_/ )/ ( .-._)| |/\| |
  \   (_)(_) \   | /  \ |
   ) (   _  \ \  |  /\  |
   | |  ( `-'  ) |(/  \ |
  /(_|   `----'  (_)   \|
 (__)                    

O~~   O~~ O~~~~ O~~      O~~
 O~~ O~~ O~~     O~~  ~  O~~
   O~~~    O~~~  O~~ O~  O~~
    O~~      O~~ O~ O~ O~O~~
   O~~   O~~ O~~O~~~     O~~
 O~~                        

 _  _  ___  _    _ 
( \/ )/ __)( \/\/ )
 \  / \__ \ \    / 
(__/  (___/  \/\/  

  ^    ^    ^  
 /y\  /s\  /w\ 
<___><___><___>

  __ ______    __
 / // (_-< |/|/ /
 \_, /___/__,__/ 
/___/            
登录 后评论
下一篇
冒顿单于
10891人浏览
2019-08-28
相关推荐
SpringBoot学习目录
1236人浏览
2017-11-28 19:03:00
SpringBoot启动流程
353人浏览
2016-10-22 11:04:00
SpringBoot启动banner更改
1075人浏览
2018-04-30 21:21:00
SpringBoot启动时的Banner设置
506人浏览
2015-10-07 13:58:00
0
0
0
6416