Browse Source

Update configuration metadata for show-banner and banner-mode changes

Closes gh-4001
pull/4118/merge
Andy Wilkinson 10 years ago
parent
commit
97c8749528
  1. 2
      spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
  2. 11
      spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json

2
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

@ -43,7 +43,7 @@ content into your application; rather pick only the properties that you need. @@ -43,7 +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)
spring.main.banner-mode=console # mode used to display the banner when the application runs (console, off, or log)
spring.main....= # see class for all properties
# AUTO-CONFIGURATION

11
spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json

@ -109,12 +109,21 @@ @@ -109,12 +109,21 @@
"sourceType": "org.springframework.boot.context.config.ConfigFileEnvironmentPostProcessor",
"description": "Config file locations."
},
{
"name": "spring.main.banner-mode",
"type": "org.springframework.boot.Banner$Mode",
"sourceType": "org.springframework.boot.SpringApplication",
"description": "Mode used to display the banner when the application runs.",
"defaultValue": "console",
},
{
"name": "spring.main.show-banner",
"type": "java.lang.Boolean",
"sourceType": "org.springframework.boot.SpringApplication",
"description": "Display the banner when the application runs.",
"defaultValue": true
"defaultValue": true,
"deprecated": true,
"deprecation": {"replacement": "spring.main.banner-mode"}
},
{
"name": "spring.main.sources",

Loading…
Cancel
Save