Home  >  Article  >  Java  >  How to customize Banner in SpringBoot

How to customize Banner in SpringBoot

王林
王林forward
2023-05-14 15:34:131578browse

1. Create a new banner.txt in src/main/resources

and write the information

2. Customize the printing bannerspring.banner in application.properties

# .location=classpath:banner.txtspring.banner.charset=utf-8

3.Close banner

public static void main(String[] args) {

SpringApplication app = new SpringApplication(MySpringConfiguration.class);

//app.setBannerMode(Banner.Mode.OFF);app.run(args);

}

springboot What is

springboot is a brand-new programming specification designed to simplify the initial construction and development process of new Spring applications. SpringBoot is also a framework that serves the framework, and its service scope is to simplify configuration files.

The above is the detailed content of How to customize Banner in SpringBoot. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete