Package org.springframework.boot.convert
Annotation Type DataSizeUnit
@Target(FIELD) @Retention(RUNTIME) @Documented public @interface DataSizeUnit
Annotation that can be used to change the default unit used when converting aDataSize
.- Since:
- 2.1.0
Required Element Summary
Required Elements Modifier and Type Required Element Description org.springframework.util.unit.DataUnit
value
TheDataUnit
to use if one is not specified.
Element Detail
value
org.springframework.util.unit.DataUnit value
TheDataUnit
to use if one is not specified.- Returns:
- the data unit