@ -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:
@ -87,7 +88,7 @@ public class ConfigFileEnvironmentPostProcessorTests {
@@ -87,7 +88,7 @@ public class ConfigFileEnvironmentPostProcessorTests {
}
System.clearProperty("the.property");
System.clearProperty("spring.config.location");
System.clearProperty("spring.main.showBanner");
System.clearProperty("spring.main.banner-mode");
}
@Test
@ -623,19 +624,19 @@ public class ConfigFileEnvironmentPostProcessorTests {
@@ -623,19 +624,19 @@ public class ConfigFileEnvironmentPostProcessorTests {