Browse Source

Document that placeholders in @DefaultValue annotations are not resolved

Closes gh-23164
pull/30000/head
Madhura Bhave 4 years ago
parent
commit
67b13ee4c7
  1. 3
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java

3
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java

@ -32,6 +32,9 @@ import java.lang.annotation.Target; @@ -32,6 +32,9 @@ import java.lang.annotation.Target;
* {@link org.springframework.boot.context.properties.ConfigurationProperties @ConfigurationProperties},
* the default value for the property will not be used even if the property value is
* empty.
* <p>
* NOTE: This annotation does not support property placeholder resolution and the value
* must be constant.
*
* @author Madhura Bhave
* @since 2.2.0

Loading…
Cancel
Save