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

How to customize Banner in SpringBoot

王林
Release: 2023-05-14 15:34:13
forward
1603 people have browsed it

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template