Package org.springframework.boot.convert
Annotation Interface DurationUnit
Annotation that can be used to change the default unit used when converting a
Duration
.- Since:
- 2.0.0
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe duration unit to use if one is not specified.
-
Element Details
-
value
ChronoUnit valueThe duration unit to use if one is not specified.- Returns:
- the duration unit
-