We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46e12cb + 1871cff commit 7e547b6Copy full SHA for 7e547b6
spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc
@@ -1450,6 +1450,8 @@ These are:
1450
* `d` for days
1451
1452
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.
1455
1456
TIP: If you are upgrading a `Long` property, make sure to define the unit (using `@DurationUnit`) if it isn't milliseconds.
1457
Doing so gives a transparent upgrade path while supporting a much richer format.
0 commit comments