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
35cf0c56
Commit
35cf0c56
authored
Aug 14, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
33d6991d
cabd7983
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
appendix-configuration-metadata.adoc
...cs/src/main/asciidoc/appendix-configuration-metadata.adoc
+2
-0
NestedConfigurationProperty.java
.../boot/context/properties/NestedConfigurationProperty.java
+5
-2
No files found.
spring-boot-docs/src/main/asciidoc/appendix-configuration-metadata.adoc
View file @
35cf0c56
...
...
@@ -815,6 +815,8 @@ Will produce meta-data information for `server.name`, `server.host.ip` and
annotation on a field to indicate that a regular (non-inner) class should be treated as
if it were nested.
TIP: This has no effect on collections and maps as those types are automatically
identified and a single meta-data property is generated for each of them.
[[configuration-metadata-additional-metadata]]
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/NestedConfigurationProperty.java
View file @
35cf0c56
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -26,7 +26,10 @@ import java.lang.annotation.Target;
* Indicates that a field in a {@link ConfigurationProperties} object should be treated as
* if it were a nested type. This annotation has no bearing on the actual binding
* processes, but it is used by the {@code spring-boot-configuration-processor} as a hint
* that a field is not bound as a single value.
* that a field is not bound as a single value. When this is specified, a nested group is
* created for the field and its type is harvested.
* <p>
* This has no effect on collections and maps as these types are automatically identified.
*
* @author Stephane Nicoll
* @author Phillip Webb
...
...
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