我们每一次启动SpringBoot项目都会在控制台上输出spring的横幅,那我们能不能实现使用自己的横幅呢?
那肯定是可以的并且还非常简单只需要在项目中的resources
下创建一个banner.txt文件就可以替换spring的横幅。
在项目中的resources
下创建一个banner.txt文件然后再文件里面填写你自己的横幅信息。
重新启动项目后运行如下:
可以看出已经有效果了,但是这样并不美观。
使用一些在线网站来生成横幅内容,只需要把需要字符输入后点击TestAll这样就会把各种各样的图标显示出来,这个时候你只要把想要的复制下来粘贴到banner.txt中即可。
复制粘贴到banner.txt中
手动修改效果:
_____________________________________________________________________
__/\\\_____/\\\__________________________________________/\\\________
__\///___/\\\\\\\\\\\____/\\\\\__/\\\\\_______/\\\\\\\\__\///________
____/\\\_\////\\\___/\\\///\\\\\///\\\___/\\\/\\\__/\\\______
____\/\\\____\/\\\______\/\\\_\//\\\__\/\\\__/\\\\\\\\\\\__\/\\\_____
_____\/\\\____\/\\\_/\\__\/\\\__\/\\\__\/\\\_\//\\///___\/\\\____
______\/\\\____\//\\\\\___\/\\\__\/\\\__\/\\\__\//\\\\\\\\\\_\/\\\___
_______\///______\/____\///___\///___\///____\//__\///___
________________________________________________________ By itmei ___
______________________________________________________________
__/\\\_____/\\\__________________________________________/\\\_
_\///___/\\\\\\\\\\\____/\\\\\__/\\\\\_______/\\\\\\\\__\///__
__/\\\_\////\\\___/\\\///\\\\\///\\\___/\\\/\\\__/\\\_
_\/\\\____\/\\\______\/\\\_\//\\\__\/\\\__/\\\\\\\\\\\__\/\\\_
_\/\\\____\/\\\_/\\__\/\\\__\/\\\__\/\\\_\//\\///___\/\\\_
_\/\\\____\//\\\\\___\/\\\__\/\\\__\/\\\__\//\\\\\\\\\\_\/\\\_
_\///______\/____\///___\///___\///____\//__\///__
___________________________________________________ By itmei _