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
383288f1
Commit
383288f1
authored
Sep 03, 2014
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.1.x'
parents
236026a4
811f5ab8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+6
-0
No files found.
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
383288f1
...
@@ -32,7 +32,7 @@ content into your application; rather pick only the properties that you need.
...
@@ -32,7 +32,7 @@ content into your application; rather pick only the properties that you need.
spring.config.location= # location of config file
spring.config.location= # location of config file
# PROFILES
# PROFILES
spring.profiles
= # comma list of active profiles
spring.profiles
.active= # comma list of <<howto-set-active-spring-profiles,active profiles>>
# APPLICATION SETTINGS ({sc-spring-boot}/SpringApplication.{sc-ext}[SpringApplication])
# APPLICATION SETTINGS ({sc-spring-boot}/SpringApplication.{sc-ext}[SpringApplication])
spring.main.sources=
spring.main.sources=
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
383288f1
...
@@ -453,6 +453,9 @@ by using a `spring.profiles` key to indicate when the document applies. For exam
...
@@ -453,6 +453,9 @@ by using a `spring.profiles` key to indicate when the document applies. For exam
address: 192.168.1.120
address: 192.168.1.120
----
----
In the example above, the `server.address` property will be `127.0.0.1` if the `development`
profile is active. If the `development` and `production` profiles are **not** enabled, then the
value for the property will be `192.168.1.100`
[[boot-features-external-config-yaml-shortcomings]]
[[boot-features-external-config-yaml-shortcomings]]
...
@@ -638,6 +641,9 @@ For example, when an application with following properties is run using the swit
...
@@ -638,6 +641,9 @@ For example, when an application with following properties is run using the swit
spring.profiles.include: proddb,prodmq
spring.profiles.include: proddb,prodmq
----
----
NOTE: Remember that the `spring.profiles` property can be defined in a YAML document
to determine when this particular document is included in the configuration. See
<<howto-change-configuration-depending-on-the-environment>> for more details.
[[boot-features-programmatically-setting-profiles]]
[[boot-features-programmatically-setting-profiles]]
...
...
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