org.springframework.boot.convert

Annotation Type PeriodUnit



  • @Target(value={FIELD,PARAMETER})
     @Retention(value=RUNTIME)
     @Documented
    public @interface PeriodUnit
    Annotation that can be used to change the default unit used when converting a Period.
    Since:
    2.3.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      java.time.temporal.ChronoUnit value
      The Period unit to use if one is not specified.
    • Element Detail

      • value

        public abstract java.time.temporal.ChronoUnit value
        The Period unit to use if one is not specified.
        Returns:
        the Period unit