Home >Java >javaTutorial >How to customize Banner in SpringBoot
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 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!