springboot修改或者关闭banner

springboot启动的时候会有一个默认的图案,这个图案是可以改的。

  1. 在src/main/resource目录下新建一个banner.txt
  2. 可以通过http://patorjk.com/software/taag,这个网站生成自己想要的字符,然后将生成的东西复制到banner.txt中
  3. 这个时候再启动的话,就是你更改过后的图案了。

当然,也可以关闭启动图案。

SpringApplication app  = new SpringApplication(SpringbootApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);

猜你喜欢

转载自blog.csdn.net/jjkang_/article/details/81011077