This commit changes the new mode-based configuration to use two new
methods – setBannerMode on SpringApplication and bannerMode on
SpringApplicationBuilder. The old methods, setShowBanner and
showBanner on SpringApplication and SpringApplicationBuilder
respectively, have been reinstated and deprecated.
Closes gh-4001
@ -43,6 +43,7 @@ content into your application; rather pick only the properties that you need.
@@ -43,6 +43,7 @@ content into your application; rather pick only the properties that you need.
spring.main.sources= # sources (class name, package name or XML resource location) to include
spring.main.web-environment= # detect by default
spring.main.show-banner=true
spring.main.banner-mode=console # the mode used to display the banner (console, off, or log)
@ -93,7 +93,7 @@ instance and customize it. For example, to turn off the banner you would write:
@@ -93,7 +93,7 @@ instance and customize it. For example, to turn off the banner you would write:
----
public static void main(String[] args) {
SpringApplication app = new SpringApplication(MySpringConfiguration.class);
app.setShowBanner(false);
app.setBannerMode(Banner.Mode.OFF);
app.run(args);
}
----
@ -124,7 +124,7 @@ For example:
@@ -124,7 +124,7 @@ For example: