接口的使用
org.springframework.format.FormatterRegistrar
使用FormatterRegistrar的程序包 程序包 说明 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.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.format.datetime中FormatterRegistrar的使用
实现FormatterRegistrar的org.springframework.format.datetime中的类 修饰符和类型 类 说明 class
DateFormatterRegistrar
Configures basic date formatting for use with Spring, primarily forDateTimeFormat
declarations.org.springframework.format.datetime.joda中FormatterRegistrar的使用
实现FormatterRegistrar的org.springframework.format.datetime.joda中的类 修饰符和类型 类 说明 class
JodaTimeFormatterRegistrar
Configures Joda-Time's formatting system for use with Spring.org.springframework.format.datetime.standard中FormatterRegistrar的使用
实现FormatterRegistrar的org.springframework.format.datetime.standard中的类 修饰符和类型 类 说明 class
DateTimeFormatterRegistrar
Configures the JSR-310java.time
formatting system for use with Spring.org.springframework.format.support中FormatterRegistrar的使用
类型变量类型为FormatterRegistrar的org.springframework.format.support中的方法参数 修饰符和类型 方法 说明 void
FormattingConversionServiceFactoryBean. setFormatterRegistrars(Set<FormatterRegistrar> formatterRegistrars)
Configure the set of FormatterRegistrars to invoke to register Converters and Formatters in addition to those added declaratively viaFormattingConversionServiceFactoryBean.setConverters(Set)
andFormattingConversionServiceFactoryBean.setFormatters(Set)
.