Skip to content

Commit 67b13ee

Browse files
committed
Document that placeholders in @DefaultValue annotations are not resolved
Closes gh-23164
1 parent cc95f73 commit 67b13ee

File tree

1 file changed

+3
-0
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
* {@link org.springframework.boot.context.properties.ConfigurationProperties @ConfigurationProperties},
3333
* the default value for the property will not be used even if the property value is
3434
* empty.
35+
* <p>
36+
* NOTE: This annotation does not support property placeholder resolution and the value
37+
* must be constant.
3538
*
3639
* @author Madhura Bhave
3740
* @since 2.2.0

0 commit comments

Comments
 (0)