Spring Boot 启动时的 Logo Banner:
1 2 3 4 5 6 7
| . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _`| \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.2.RELEASE)
|
1. 更换 Banner
在src/main/resources
目录下创建banner.txt
文件:
src/main/resources/banner.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ . ' \\| |//`. / \\||| : |||// \ / _||||| -:- |||||- \ | | \\\ - /// | | | \_| ''\---/'' | | \ .-\__`-`___/-. / ___`. .' /--.--\`. . __ ."" '<`.___\_<|>_/___.' >'"". | | :`- \`.;`\ _ /`;.`/ -`: | | \ \`-. \_ __\ /__ _/ .-`/ / ======`-.____`-.___\_____/___.-`____.-'====== `=---=' ............................................. 佛祖镇楼 BUG辟易
|
2. 禁用 Banner
src/main/resources/application.yml
1 2 3
| spring: main: banner-mode: 'off'
|
或
src/main/resources/application.properties
1
| spring.main.banner-mode='off'
|
或
terminal
1
| $ java -Dspring.main.banner-mode=off -jar xxxx.jar
|