为Springboot项目添加自定义炫酷Banner

在src下找到resources,在resources下新建banner.txt,在其中设置自己的Banner内容即可!

Spring Boot提供了一个枚举类AnsiColor可以用来控制banner.txt字符中的颜色:

${AnsiColor.YELLOW} 或者:${AnsiColor.BRIGHT_YELLOW}

赠送几个在线生成自定义Banner的网站如下:

http://patorjk.com/software/taag/

https://www.bootschool.net/ascii

http://www.network-science.de/ascii/

另外再附赠一个佛主保佑神图:

${AnsiColor.BRIGHT_YELLOW}
————————————————————————————————————————————————————————————————————
//                          _ooOoo_                               //
//                         o8888888o                              //
//                         88" . "88                              //
//                         (| ^_^ |)                              //
//                         O\  =  /O                              //
//                      ____/`---'\____                           //
//                    .'  \\|     |//  `.                         //
//                   /  \\|||  :  |||//  \                        //
//                  /  _||||| -:- |||||-  \                       //
//                  |   | \\\  -  /// |   |                       //
//                  | \_|  ''\---/''  |   |                       //
//                  \  .-\__  `-`  ___/-. /                       //
//                ___`. .'  /--.--\  `. . ___                     //
//              ."" '<  `.___\_<|>_/___.'  >'"".                  //
//            | | :  `- \`.;`\ _ /`;.`/ - ` : | |                 //
//            \  \ `-.   \_ __\ /__ _/   .-` /  /                 //
//      ========`-.____`-.___\_____/___.-`____.-'========         //
//                           `=---='                              //
//      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //
//            佛祖保佑       永不宕机     永无BUG                  //
————————————————————————————————————————————————————————————————————

效果如下:

image.png

NICE!

jiguiquan@163.com

文章作者信息...

留下你的评论

*评论支持代码高亮<pre class="prettyprint linenums">代码</pre>

相关推荐