Spring boot custom startup character drawing (banner)
When the spring boot project is started, the ANSI character drawing of spring boot will be printed, which can be customized.
How to customize
The implementation method is very simple. We only need to create a banner in the / SRC / main / resources directory of the spring boot project Txt file, and then copy the ASCII character drawing to replace the default banner.
█████████████████████████████████████████████████████████████████████████████████████████████████████
█████╗ ██╗██╗ ██╗██╗ ███████╗ █████╗ █████╗ ███████╗
██╔══██╗██║██║ ██║██║ ██╔════╝██╔══██╗██╔══██╗██╔════╝
███████║██║██║ ██║██║ ███████╗███████║███████║███████╗
██╔══██║██║██║ ██║██║ ╚════██║██╔══██║██╔══██║╚════██║
██║ ██║██║╚██████╔╝██║ ███████║██║ ██║██║ ██║███████║
╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
█████████████████████████████████████████████████████████████████████████████████████████████████████
How to generate character drawing
If we edit these character paintings manually, it is obviously a very difficult job.
I just came into contact with jhipster and found a generator jhipster banner plug-in, which can generate banner
First install:
npm install -g generator-jhipster-banner
use:
yo jhipster-banner.
If you haven't installed yo it, install it first:
npm install -g yo
Press the prompt to enter text and select color.
Other methods:
http://patorjk.com/software/taag http://www.network-science.de/ascii/ http://www.degraeve.com/img2txt.php
Egg: Buddha who never goes down
${AnsiColor.BRIGHT_YELLOW}
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////