springboot 更改启动logo

springboot 更改启动logo(banner)

使用图片

springboot 更改启动logo(banner)
将banner.jpg放到resources中,springboot 会默认先加载图片,如果没有图片会加载banner.txt

使用自定义文字

springboot 更改启动logo(banner)
springboot 更改启动logo(banner)

生成地址:
https://link.jianshu.com/?t=http://www.network-science.de/ascii/

自定义设置

springboot 更改启动logo(banner)
看源码发现可以在启动方法中关闭banner,通过设置bannerMode=Mode.OFF

springboot 更改启动logo(banner)

可以在application.properties文件中指定banner的位置以及名称

相关文章: