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
3e629330
Commit
3e629330
authored
Jul 11, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
8e669e2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-6
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
3e629330
...
@@ -957,10 +957,9 @@ section for details.
...
@@ -957,10 +957,9 @@ section for details.
[[boot-features-external-config-vs-value]]
[[boot-features-external-config-vs-value]]
==== @ConfigurationProperties vs. @Value
==== @ConfigurationProperties vs. @Value
`@Value` is a core container feature and it does not provide the same features as
`@Value` is a core container feature and it does not provide the same features as type-safe
type-safe Configuration Properties. The table below summarizes the features that are
Configuration Properties. The table below summarizes the features that are supported by
supported by `@ConfigurationProperties` and `@Value`:
`@ConfigurationProperties` and `@Value`:
[cols="4,2,2"]
[cols="4,2,2"]
|===
|===
...
@@ -977,11 +976,10 @@ Configuration Properties. The table below summarizes the features that are suppo
...
@@ -977,11 +976,10 @@ Configuration Properties. The table below summarizes the features that are suppo
| `SpEL` evaluation
| `SpEL` evaluation
| No
| No
| Yes
| Yes
|===
|===
If you define a set of configuration keys for your own components, we recommend you to
If you define a set of configuration keys for your own components, we recommend you to
group them in a
pojo
annotated with `@ConfigurationProperties`. Please also be aware
group them in a
POJO
annotated with `@ConfigurationProperties`. Please also be aware
that since `@Value` does not support relaxed binding, it isn't a great candidate if you
that since `@Value` does not support relaxed binding, it isn't a great candidate if you
need to provide the value using environment variables.
need to provide the value using environment variables.
...
...
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