Package org.springframework.boot.convert
Annotation Type DurationUnit
@Target(FIELD) @Retention(RUNTIME) @Documented public @interface DurationUnit
Annotation that can be used to change the default unit used when converting aDuration
.- Since:
- 2.0.0
Required Element Summary
Required Elements Modifier and Type Required Element Description ChronoUnit
value
The duration unit to use if one is not specified.
Element Detail
value
ChronoUnit value
The duration unit to use if one is not specified.- Returns:
- the duration unit