From 3a6170c01983e8eff99ac0216e669890d0473830 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 24 Nov 2017 10:45:11 +0100 Subject: [PATCH] Polish --- .../src/main/asciidoc/spring-boot-features.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 40ddac7db3..3193722531 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1101,7 +1101,7 @@ For example, consider the following `@ConfigurationProperties` class: [source,java,indent=0] ---- - @ConfigurationProperties(prefix="person") + @ConfigurationProperties(prefix="acme.my-project.person") public class OwnerProperties { private String firstName; @@ -1124,22 +1124,22 @@ In the preceding example, the following properties names can all be used: |=== | Property | Note -|`person.firstName` +|`acme.my-project.person.firstName` |Standard camel case syntax. -|`person.first-name` +|`acme.my-project.person.first-name` |Kebab case, which is recommended for use in `.properties` and `.yml` files. -|`person.first_name` +|`acme.my-project.person.first_name` |Underscore notation, which is an alternative format for use in `.properties` and `.yml` files. -|`PERSON_FIRSTNAME` +|`ACME_MYPROJECT_PERSON_FIRSTNAME` |Upper case format, which is recommended when using a system environment variables. |=== -NOTE: The `prefix` value for the annotation must be in kebab case (lowercase and -separated by `-`, such as `kebab-case`). +NOTE: The `prefix` value for the annotation _must_ be in kebab case (lowercase and +separated by `-`, i.e. `acme.my-project.person`). .relaxed binding rules per property source [cols="2,4,4"]