接口的使用
org.springframework.format.AnnotationFormatterFactory
使用AnnotationFormatterFactory的程序包 程序包 说明 org.springframework.format An API for defining Formatters to format field model values for display in a UI.org.springframework.format.datetime Formatters forjava.util.Date
properties.org.springframework.format.datetime.joda Integration with Joda-Time for formatting Joda date and time types as well as standard JDK Date types.org.springframework.format.datetime.standard Integration with the JSR-310java.time
package in JDK 8.org.springframework.format.number Formatters forjava.lang.Number
properties.org.springframework.format.number.money Integration with the JSR-354javax.money
package.org.springframework.format.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.format中AnnotationFormatterFactory的使用
参数类型为AnnotationFormatterFactory的org.springframework.format中的方法 修饰符和类型 方法 说明 void
FormatterRegistry. addFormatterForFieldAnnotation(AnnotationFormatterFactory<? extends Annotation> annotationFormatterFactory)
Adds a Formatter to format fields annotated with a specific format annotation.org.springframework.format.datetime中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.datetime中的类 修饰符和类型 类 说明 class
DateTimeFormatAnnotationFormatterFactory
Formats fields annotated with theDateTimeFormat
annotation using aDateFormatter
.org.springframework.format.datetime.joda中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.datetime.joda中的类 修饰符和类型 类 说明 class
JodaDateTimeFormatAnnotationFormatterFactory
Formats fields annotated with theDateTimeFormat
annotation using Joda-Time.org.springframework.format.datetime.standard中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.datetime.standard中的类 修饰符和类型 类 说明 class
Jsr310DateTimeFormatAnnotationFormatterFactory
Formats fields annotated with theDateTimeFormat
annotation using the JSR-310java.time
package in JDK 8.org.springframework.format.number中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.number中的类 修饰符和类型 类 说明 class
NumberFormatAnnotationFormatterFactory
Formats fields annotated with theNumberFormat
annotation.org.springframework.format.number.money中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.number.money中的类 修饰符和类型 类 说明 class
Jsr354NumberFormatAnnotationFormatterFactory
FormatsMonetaryAmount
fields annotated with Spring's commonNumberFormat
annotation.org.springframework.format.support中AnnotationFormatterFactory的使用
参数类型为AnnotationFormatterFactory的org.springframework.format.support中的方法 修饰符和类型 方法 说明 void
FormattingConversionService. addFormatterForFieldAnnotation(AnnotationFormatterFactory<? extends Annotation> annotationFormatterFactory)