You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,13 @@
25
25
/**
26
26
* Annotation that can be used to specify the default value when binding to an immutable
27
27
* property. This annotation can also be used with nested properties to indicate that a
28
-
* value should always be bound (rather than binding {@code null}).
28
+
* value should always be bound (rather than binding {@code null}). The value from this
29
+
* annotation will only be used if the property is not found in the property sources used
30
+
* by the {@link Binder}. For example, if the property is present in the
31
+
* {@link org.springframework.core.env.Environment} when binding to
0 commit comments