What is a banner
We console will print out the spring banner pattern is when you start the project.
Two custom banner
1 Create a springboot project.
2 Create a file called banner.txt in the resource directory.
3 Write to banner.txt in our pattern.
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