Get the App
SLTechnology News&Howtos  ›  Development  › 

How to customize Banner in SpringBoot

Shulou Source: shulou.com Published: 2022-06-01 00:51:49 09月16日 Update

In this article Xiaobian for you to introduce in detail "how to customize Banner in SpringBoot", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to customize Banner in SpringBoot" can help you solve your doubts.

1. In src/main/resources

Create a new banner.txt write message content

two。 In application.properties

# Custom print bannerspring.banner.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)

}

What is springboot? springboot is a new programming specification, which is designed to simplify the initial construction and development process of new Spring applications. SpringBoot is also a framework that serves the framework, and the scope of services is to simplify configuration files.

After reading this, the article "how to customize Banner in SpringBoot" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Tags: Content articles framework services propriety information brand new ideas documents new knowledge more scope of services steps objectives knowledge knowledge points articles details scope industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn OPPO Reno Huawei MariaDB NVidia