File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1013,7 +1013,7 @@ the following example:
1013
1013
import java.util.List;
1014
1014
1015
1015
import org.springframework.boot.context.properties.ConfigurationProperties;
1016
- import org.springframework.boot.context.properties.ConfigurationPropertyDefaultValue ;
1016
+ import org.springframework.boot.context.properties.DefaultValue ;
1017
1017
1018
1018
@ConfigurationProperties("acme")
1019
1019
public class AcmeProperties {
@@ -1045,7 +1045,7 @@ the following example:
1045
1045
private final List<String> roles;
1046
1046
1047
1047
public Security(String username, String password,
1048
- @ConfigurationPropertyDefaultValue ("USER") List<String> roles) {
1048
+ @DefaultValue ("USER") List<String> roles) {
1049
1049
this.username = username;
1050
1050
this.password = password;
1051
1051
this.roles = roles;
@@ -1065,9 +1065,8 @@ the following example:
1065
1065
In this setup one, and only one constructor must be defined with the list of properties
1066
1066
that you wish to bind and not other properties than the ones in the constructor are bound.
1067
1067
1068
- Default values can be specified using `@ConfigurationPropertyDefaultValue` and the same
1069
- conversion service will be applied to coerce the `String` value to the target type of a
1070
- missing property.
1068
+ Default values can be specified using `@DefaultValue` and the same conversion service will
1069
+ be applied to coerce the `String` value to the target type of a missing property.
1071
1070
1072
1071
1073
1072
You can’t perform that action at this time.
0 commit comments