Register printed banner in ApplicationContext

Update SpringApplication to store the banner that was actually printed
as a bean named `springBootBanner`.

Closes gh-5636
This commit is contained in:
Michael J. Simons
2016-04-11 17:50:24 +01:00
committed by Phillip Webb
parent e14329c77b
commit aaed87d176
4 changed files with 88 additions and 17 deletions

View File

@@ -94,6 +94,9 @@ You can also use the `spring.main.banner-mode` property to determine if the bann
to be printed on `System.out` (`console`), using the configured logger (`log`) or not
at all (`off`).
The printed banner will be registered as a singleton bean under the name
`springBootBanner`.
[NOTE]
====
YAML maps `off` to `false` so make sure to add quotes if you want to disable the