Springboot- custom banner

What is a banner

We console will print out the spring banner pattern is when you start the project.
Here Insert Picture Description

Two custom banner

1 Create a springboot project.
2 Create a file called banner.txt in the resource directory.
Here Insert Picture Description
3 Write to banner.txt in our pattern.
Here Insert Picture Description
4 introduces web start dependent.

  <dependencies>
        <!-- web启动器-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
    </dependencies>

5 Start writing class.

 * @Author lsc
 * @Description <p> </p>
 * @Date 2019/10/2 14:59
 * @Version 1.0
 */
@SpringBootApplication
public class BannerApplication {

    public static void main(String[] args) {
        SpringApplication.run(BannerApplication.class,args);
    }
}

Three verification banner

Startup project
Here Insert Picture Description

Guess you like

Origin www.cnblogs.com/zszxz/p/12084742.html