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
3a6170c0
Commit
3a6170c0
authored
Nov 24, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
d6aac41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+7
-7
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
3a6170c0
...
...
@@ -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"]
...
...
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