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
5547a849
Commit
5547a849
authored
Oct 02, 2019
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
58fc3373
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
ConfigurationProperties.java
...work/boot/context/properties/ConfigurationProperties.java
+7
-7
ConfigurationPropertiesBean.java
.../boot/context/properties/ConfigurationPropertiesBean.java
+1
-1
ImmutableConfigurationProperties.java
.../context/properties/ImmutableConfigurationProperties.java
+7
-7
Bindable.java
...pringframework/boot/context/properties/bind/Bindable.java
+1
-1
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
5547a849
...
@@ -901,7 +901,7 @@ The example in the previous section can be rewritten in an immutable fashion as
...
@@ -901,7 +901,7 @@ The example in the previous section can be rewritten in an immutable fashion as
----
----
In this setup, the `@ImmutableConfigurationProperties` annotation is used to indicate that constructor binding should be used.
In this setup, the `@ImmutableConfigurationProperties` annotation is used to indicate that constructor binding should be used.
This means that the binder will expect to find a constructor with the parameters that you wish to have bound
bind
.
This means that the binder will expect to find a constructor with the parameters that you wish to have bound.
Nested classes that also require constructor binding (such as `Security` in the example above) should use the `@ConstructorBinding` annotation.
Nested classes that also require constructor binding (such as `Security` in the example above) should use the `@ConstructorBinding` annotation.
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java
View file @
5547a849
...
@@ -50,19 +50,19 @@ import org.springframework.core.annotation.AliasFor;
...
@@ -50,19 +50,19 @@ import org.springframework.core.annotation.AliasFor;
public
@interface
ConfigurationProperties
{
public
@interface
ConfigurationProperties
{
/**
/**
* The
name prefix of the properties that are valid to bind to this object. Synonym
* The
prefix of the properties that are valid to bind to this object. Synonym for
*
for {@link #prefix()}. A valid prefix is defined by one or more words separated
*
{@link #prefix()}. A valid prefix is defined by one or more words separated with
*
with
dots (e.g. {@code "acme.system.feature"}).
* dots (e.g. {@code "acme.system.feature"}).
* @return the
name
prefix of the properties to bind
* @return the prefix of the properties to bind
*/
*/
@AliasFor
(
"prefix"
)
@AliasFor
(
"prefix"
)
String
value
()
default
""
;
String
value
()
default
""
;
/**
/**
* The
name prefix of the properties that are valid to bind to this object. Synonym
* The
prefix of the properties that are valid to bind to this object. Synonym for
*
for
{@link #value()}. A valid prefix is defined by one or more words separated with
* {@link #value()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* dots (e.g. {@code "acme.system.feature"}).
* @return the
name
prefix of the properties to bind
* @return the prefix of the properties to bind
*/
*/
@AliasFor
(
"value"
)
@AliasFor
(
"value"
)
String
prefix
()
default
""
;
String
prefix
()
default
""
;
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBean.java
View file @
5547a849
...
@@ -250,7 +250,7 @@ public final class ConfigurationPropertiesBean {
...
@@ -250,7 +250,7 @@ public final class ConfigurationPropertiesBean {
}
}
/**
/**
* The binding method that
use
used for the bean.
* The binding method that
is
used for the bean.
*/
*/
public
enum
BindMethod
{
public
enum
BindMethod
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ImmutableConfigurationProperties.java
View file @
5547a849
...
@@ -40,19 +40,19 @@ import org.springframework.core.annotation.AliasFor;
...
@@ -40,19 +40,19 @@ import org.springframework.core.annotation.AliasFor;
public
@interface
ImmutableConfigurationProperties
{
public
@interface
ImmutableConfigurationProperties
{
/**
/**
* The
name prefix of the properties that are valid to bind to this object. Synonym
* The
prefix of the properties that are valid to bind to this object. Synonym for
*
for {@link #prefix()}. A valid prefix is defined by one or more words separated
*
{@link #prefix()}. A valid prefix is defined by one or more words separated with
*
with
dots (e.g. {@code "acme.system.feature"}).
* dots (e.g. {@code "acme.system.feature"}).
* @return the
name
prefix of the properties to bind
* @return the prefix of the properties to bind
*/
*/
@AliasFor
(
annotation
=
ConfigurationProperties
.
class
)
@AliasFor
(
annotation
=
ConfigurationProperties
.
class
)
String
value
()
default
""
;
String
value
()
default
""
;
/**
/**
* The
name prefix of the properties that are valid to bind to this object. Synonym
* The
prefix of the properties that are valid to bind to this object. Synonym for
*
for
{@link #value()}. A valid prefix is defined by one or more words separated with
* {@link #value()}. A valid prefix is defined by one or more words separated with
* dots (e.g. {@code "acme.system.feature"}).
* dots (e.g. {@code "acme.system.feature"}).
* @return the
name
prefix of the properties to bind
* @return the prefix of the properties to bind
*/
*/
@AliasFor
(
annotation
=
ConfigurationProperties
.
class
)
@AliasFor
(
annotation
=
ConfigurationProperties
.
class
)
String
prefix
()
default
""
;
String
prefix
()
default
""
;
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java
View file @
5547a849
...
@@ -114,7 +114,7 @@ public final class Bindable<T> {
...
@@ -114,7 +114,7 @@ public final class Bindable<T> {
}
}
/**
/**
* Return the constructor filter that can be used to limit the constructor that are
* Return the constructor filter that can be used to limit the constructor
s
that are
* considered when binding.
* considered when binding.
* @return the constructor filter
* @return the constructor filter
* @since 2.2.0
* @since 2.2.0
...
...
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