Skip to content

Commit 7e547b6

Browse files
committed
Merge branch '2.2.x' into 2.3.x
Closes gh-22665
2 parents 46e12cb + 1871cff commit 7e547b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,8 @@ These are:
14501450
* `d` for days
14511451

14521452
The default unit is milliseconds and can be overridden using `@DurationUnit` as illustrated in the sample above.
1453+
Note that `@DurationUnit` is only supported with JavaBean-style property binding using getters and setters.
1454+
It is not supported with constructor binding.
14531455

14541456
TIP: If you are upgrading a `Long` property, make sure to define the unit (using `@DurationUnit`) if it isn't milliseconds.
14551457
Doing so gives a transparent upgrade path while supporting a much richer format.

0 commit comments

Comments
 (0)