org.springframework.boot.convert

Annotation Type DataSizeUnit



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

      Required Elements 
      Modifier and Type Required Element and Description
      org.springframework.util.unit.DataUnit value
      The DataUnit to use if one is not specified.
    • Element Detail

      • value

        public abstract org.springframework.util.unit.DataUnit value
        The DataUnit to use if one is not specified.
        Returns:
        the data unit