How to customize Banner in SpringBoot
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.