接口的使用
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.Dateproperties.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.timepackage in JDK 8.org.springframework.format.number Formatters forjava.lang.Numberproperties.org.springframework.format.number.money Integration with the JSR-354javax.moneypackage.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中的方法 修饰符和类型 方法 说明 voidFormatterRegistry. 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中的类 修饰符和类型 类 说明 classDateTimeFormatAnnotationFormatterFactoryFormats fields annotated with theDateTimeFormatannotation using aDateFormatter.org.springframework.format.datetime.joda中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.datetime.joda中的类 修饰符和类型 类 说明 classJodaDateTimeFormatAnnotationFormatterFactoryFormats fields annotated with theDateTimeFormatannotation using Joda-Time.org.springframework.format.datetime.standard中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.datetime.standard中的类 修饰符和类型 类 说明 classJsr310DateTimeFormatAnnotationFormatterFactoryFormats fields annotated with theDateTimeFormatannotation using the JSR-310java.timepackage in JDK 8.org.springframework.format.number中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.number中的类 修饰符和类型 类 说明 classNumberFormatAnnotationFormatterFactoryFormats fields annotated with theNumberFormatannotation.org.springframework.format.number.money中AnnotationFormatterFactory的使用
实现AnnotationFormatterFactory的org.springframework.format.number.money中的类 修饰符和类型 类 说明 classJsr354NumberFormatAnnotationFormatterFactoryFormatsMonetaryAmountfields annotated with Spring's commonNumberFormatannotation.org.springframework.format.support中AnnotationFormatterFactory的使用
参数类型为AnnotationFormatterFactory的org.springframework.format.support中的方法 修饰符和类型 方法 说明 voidFormattingConversionService. addFormatterForFieldAnnotation(AnnotationFormatterFactory<? extends Annotation> annotationFormatterFactory)