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
bb2a81cb
Commit
bb2a81cb
authored
May 11, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document `spring.main.web-application-type`
Closes gh-9159
parent
3319be1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+9
-1
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
bb2a81cb
...
...
@@ -106,7 +106,7 @@ content into your application; rather pick only the properties that you need.
# APPLICATION SETTINGS ({sc-spring-boot}/SpringApplication.{sc-ext}[SpringApplication])
spring.main.banner-mode=console # Mode used to display the banner when the application runs.
spring.main.sources= # Sources (class name, package name or XML resource location) to include in the ApplicationContext.
spring.main.web-
environment= # Run the application in a web environment (auto-detected by default)
.
spring.main.web-
application-type= # Flag to explicitly request a specific type of web application. Auto-detected based on the classpath if not set
.
# FILE ENCODING ({sc-spring-boot}/context/FileEncodingApplicationListener.{sc-ext}[FileEncodingApplicationListener])
spring.mandatory-file-encoding= # Expected character encoding the application must use.
...
...
spring-boot/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
bb2a81cb
...
...
@@ -170,11 +170,19 @@
"sourceType"
:
"org.springframework.boot.SpringApplication"
,
"description"
:
"Sources (class name, package name or XML resource location) to include in the ApplicationContext."
},
{
"name"
:
"spring.main.web-application-type"
,
"type"
:
"org.springframework.boot.WebApplicationType"
,
"sourceType"
:
"org.springframework.boot.SpringApplication"
,
"description"
:
"Flag to explicitly request a specific type of web application. Auto-detected based on the classpath if not set."
},
{
"name"
:
"spring.main.web-environment"
,
"type"
:
"java.lang.Boolean"
,
"sourceType"
:
"org.springframework.boot.SpringApplication"
,
"description"
:
"Run the application in a web environment (auto-detected by default)."
"description"
:
"Run the application in a web environment (auto-detected by default)."
,
"deprecated"
:
true
,
"deprecation"
:
{
"replacement"
:
"spring.main.web-application-type"
}
},
{
"name"
:
"spring.output.ansi.enabled"
,
...
...
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