接口的使用
org.springframework.core.convert.converter.ConverterRegistry
使用ConverterRegistry的程序包 程序包 说明 org.springframework.core.convert.support Default implementation of the type conversion system.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.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.core.convert.support中ConverterRegistry的使用
org.springframework.core.convert.support中ConverterRegistry的子接口 修饰符和类型 接口 说明 interface
ConfigurableConversionService
Configuration interface to be implemented by most if not allConversionService
types.实现ConverterRegistry的org.springframework.core.convert.support中的类 修饰符和类型 类 说明 class
DefaultConversionService
A specialization ofGenericConversionService
configured by default with converters appropriate for most environments.class
GenericConversionService
BaseConversionService
implementation suitable for use in most environments.参数类型为ConverterRegistry的org.springframework.core.convert.support中的方法 修饰符和类型 方法 说明 static void
DefaultConversionService. addCollectionConverters(ConverterRegistry converterRegistry)
Add common collection converters.static void
DefaultConversionService. addDefaultConverters(ConverterRegistry converterRegistry)
Add converters appropriate for most environments.static void
ConversionServiceFactory. registerConverters(Set<?> converters, ConverterRegistry registry)
Register the given Converter objects with the given target ConverterRegistry.org.springframework.format中ConverterRegistry的使用
org.springframework.format中ConverterRegistry的子接口 修饰符和类型 接口 说明 interface
FormatterRegistry
A registry of field formatting logic.org.springframework.format.datetime中ConverterRegistry的使用
参数类型为ConverterRegistry的org.springframework.format.datetime中的方法 修饰符和类型 方法 说明 static void
DateFormatterRegistrar. addDateConverters(ConverterRegistry converterRegistry)
Add date converters to the specified registry.org.springframework.format.support中ConverterRegistry的使用
实现ConverterRegistry的org.springframework.format.support中的类 修饰符和类型 类 说明 class
DefaultFormattingConversionService
A specialization ofFormattingConversionService
configured by default with converters and formatters appropriate for most applications.class
FormattingConversionService
AConversionService
implementation designed to be configured as aFormatterRegistry
.