From 449752c9e2d069227ea68f833dfd2dabcf216d66 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 3 Sep 2014 08:38:31 -0700 Subject: [PATCH] Minor asciidoctor formatting --- .../src/main/asciidoc/spring-boot-features.adoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 007ab06166..b05447f797 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -434,7 +434,7 @@ placeholders syntax to access YAML properties. [[boot-features-external-config-multi-profile-yaml]] ==== Multi-profile YAML documents -You can specify multiple profile-specific YAML document in a single file by +You can specify multiple profile-specific YAML documents in a single file by by using a `spring.profiles` key to indicate when the document applies. For example: [source,yaml,indent=0] @@ -453,9 +453,10 @@ by using a `spring.profiles` key to indicate when the document applies. For exam 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` +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]] @@ -646,6 +647,7 @@ to determine when this particular document is included in the configuration. See <> for more details. + [[boot-features-programmatically-setting-profiles]] === Programmatically setting profiles You can programmatically set active profiles by calling