org.springframework.boot.convert

Annotation Type DurationFormat



  • @Target(value=FIELD)
     @Retention(value=RUNTIME)
     @Documented
    public @interface DurationFormat
    Annotation that can be used to indicate the format to use when converting a Duration.
    Since:
    2.0.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      DurationStyle value
      The duration format style.
    • Element Detail

      • value

        public abstract DurationStyle value
        The duration format style.
        Returns:
        the duration format style.