When we start SpringBoot, the console will print the SpringBoot Logo and version information; this operation can be customized through SpringBoot's banner
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.1.RELEASE)
-
org.springframework.boot.ResourceBanner
In text format, SpringBoot will read the configuration item
banner.txt
andbanner.location
obtain the real file address from the configuration item; if there is no configuration in the configuration, the configuration item will be loaded as a file; -
org.springframework.boot.ImageBanner
Picture format, SpringBoot loads configuration items
banner.image.location
, obtains the real path from the configuration items, and SpringBoot loads files according to the path of the configuration items.
If not configuredbanner.image.location
, turn sequentially loadsbanner.gif
,banner.jpg
,banner.png
the three existing documents;
If neither of the above two is configured, Spring Boot will load the default Banner; that is, the method introduced at the beginning of the article.
//////////////////////////////////////////////////////////////////// // _ooOoo_ // // o8888888o // // 88" . "88 // // (| ^_^ |) // // O\ = /O // // ____/`---'\____ // // .' \\| |// `. // // / \\||| : |||// \ // // / _||||| -:- |||||- \ // // | | \\\ - /// | | // // | \_| ''\---/'' | | // // \ .-\__ `-` ___/-. / // // ___`. .' /--.--\ `. . ___ // // ."" '< `.___\_<|>_/___.' >'"". // // |: `-\` .; `\ _ /`;.`/-`: | | // // \ \ `-. \ _ __ \ / __ _ / .-` / / // // = ======= `-.____` -.___ \ _____ / ___.- `____.- '======== // // ` = --- =' // // ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ / / // Buddha bless never goes down never BUG // /////////////////////////////////// //////////////////////////////// //
Specifically, configure under resource
In addition, for image generation, you can generate it in the tool as follows:
http://www.degraeve.com/img2txt.php
https://www.bootschool.net/ascii