使用Spring Boot 开发时,当程序启动的时候控制台会输出由字符组成的Spring符号。这个是Spring Boot为自己设计的Banner
所有的Spring Boot 程序启动时都是输出Spring,这是不是太单调了。那么输出一些有个性的符号,或者输出公司的名字是不是更有意思?
banner.txt
,如:
banner.txt
即可。
这里推荐两个在线生成的网站:
banner.txt
里即可
SpringApplication application = new SpringApplication(Application.class);
application.setBannerMode(Mode.OFF); //启动引导类模式 关闭
application.run(args);
如:
application.properties
中添加:spring.main.banner-mode=off
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有