Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
4164cad0
Commit
4164cad0
authored
Dec 09, 2014
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add meta-data for banner keys
Fixes gh-2093
parent
d5971844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
SpringApplication.java
...main/java/org/springframework/boot/SpringApplication.java
+1
-1
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+12
-0
No files found.
spring-boot/src/main/java/org/springframework/boot/SpringApplication.java
View file @
4164cad0
...
...
@@ -468,7 +468,7 @@ public class SpringApplication {
/**
* Print a custom banner message to the console, optionally extracting its location or
* content from the Environment (banner.location and banner.charset). The defaults are
* banner.location=classpath:banner.txt, banner.char
es
t=UTF-8. If the banner file does
* banner.location=classpath:banner.txt, banner.char
se
t=UTF-8. If the banner file does
* not exist or cannot be printed, a simple default is created.
* @see #setShowBanner(boolean)
* @see #printBanner()
...
...
spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
4164cad0
...
...
@@ -4,6 +4,18 @@
"type"
:
"org.springframework.boot.logging.LoggingApplicationListener"
}
],
"properties"
:
[
{
"name"
:
"banner.charset"
,
"type"
:
"java.nio.charset.Charset"
,
"description"
:
"Banner file encoding."
,
"defaultValue"
:
"UTF-8"
},
{
"name"
:
"banner.location"
,
"type"
:
"java.lang.String"
,
"description"
:
"Banner file location."
,
"defaultValue"
:
"classpath:banner.txt"
},
{
"name"
:
"debug"
,
"type"
:
"java.lang.Boolean"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment