Package org.springframework.boot.convert
Annotation Type DurationFormat
@Target(FIELD) @Retention(RUNTIME) @Documented public @interface DurationFormat
Annotation that can be used to indicate the format to use when converting aDuration
.- Since:
- 2.0.0
Required Element Summary
Required Elements Modifier and Type Required Element Description DurationStyle
value
The duration format style.
Element Detail
value
DurationStyle value
The duration format style.- Returns:
- the duration format style.