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
449752c9
Commit
449752c9
authored
Sep 03, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor asciidoctor formatting
parent
811f5ab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+6
-4
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
449752c9
...
@@ -434,7 +434,7 @@ placeholders syntax to access YAML properties.
...
@@ -434,7 +434,7 @@ placeholders syntax to access YAML properties.
[[boot-features-external-config-multi-profile-yaml]]
[[boot-features-external-config-multi-profile-yaml]]
==== Multi-profile YAML documents
==== Multi-profile YAML documents
You can specify multiple profile-specific YAML document in a single file by
You can specify multiple profile-specific YAML document
s
in a single file by
by using a `spring.profiles` key to indicate when the document applies. For example:
by using a `spring.profiles` key to indicate when the document applies. For example:
[source,yaml,indent=0]
[source,yaml,indent=0]
...
@@ -453,9 +453,10 @@ by using a `spring.profiles` key to indicate when the document applies. For exam
...
@@ -453,9 +453,10 @@ 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`
In the example above, the `server.address` property will be `127.0.0.1` if the
profile is active. If the `development` and `production` profiles are **not** enabled, then the
`development` profile is active. If the `development` and `production` profiles are *not*
value for the property will be `192.168.1.100`
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]]
...
@@ -646,6 +647,7 @@ to determine when this particular document is included in the configuration. See
...
@@ -646,6 +647,7 @@ to determine when this particular document is included in the configuration. See
<<howto-change-configuration-depending-on-the-environment>> for more details.
<<howto-change-configuration-depending-on-the-environment>> for more details.
[[boot-features-programmatically-setting-profiles]]
[[boot-features-programmatically-setting-profiles]]
=== Programmatically setting profiles
=== Programmatically setting profiles
You can programmatically set active profiles by calling
You can programmatically set active profiles by calling
...
...
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