Package org.springframework.format.annotation
@NonNullApi
@NonNullFields
package org.springframework.format.annotation
Annotations for declaratively configuring field formatting rules.
-
ClassDescriptionDeclares that a field or method parameter should be formatted as a date or time.Common ISO date time format patterns.Declares that a field or method parameter should be formatted as a
Duration
, according to the specifiedstyle
.Duration format styles.Duration format unit, which mirrors a subset ofChronoUnit
and allows conversion to and from supportedChronoUnit
as well as converting durations to longs.Declares that a field or method parameter should be formatted as a number.Common number format styles.