First, the default boot pattern of Springboot
When the Springboot is started, the default will show a spring logo, which our users can customize.
Two, custom start pattern method One: application control pattern display
@SpringBootApplication public class hellospringbootapplication { public static void main (string[] args) {springapplication application = new springapplication (hellospringbootapplication. Class /* * Banner.Mode.OFF: off; * Banner.Mode.CONSOLE: Console output, default mode; * Banner.Mode.LOG: Log output mode; */ Application.setbannermode ( Banner.Mode.OFF); Application.Run (args); }}
Method Two: Add the Banner.txt file
We create a banner.txt file in Src\main\resources, and we can customize the pattern by writing a custom pattern to it.
Here is a website that we can use to make our own patterns:
http://patorjk.com/software/taag/#p =display&h=3&v=3&f=4max&t=spring%20boot
2.2.1 Then choose a pattern that you like:
2.2.2 Effect after startup:
Method Three: Configure in Application.properties
Configuring the display and shutdown of banner in Application.properties
Spring.main.show-banner=false//Do not display banner
Spring.main.show-banner=true//Display Banner
3.Springboot Modify the default pattern at startup banner