接口的使用
org.springframework.format.FormatterRegistry
使用FormatterRegistry的程序包 程序包 说明 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.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.format中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.format中的方法 修饰符和类型 方法 说明 voidFormatterRegistrar. registerFormatters(FormatterRegistry registry)Register Formatters and Converters with a FormattingConversionService through a FormatterRegistry SPI.org.springframework.format.datetime中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.format.datetime中的方法 修饰符和类型 方法 说明 voidDateFormatterRegistrar. registerFormatters(FormatterRegistry registry)org.springframework.format.datetime.joda中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.format.datetime.joda中的方法 修饰符和类型 方法 说明 voidJodaTimeFormatterRegistrar. registerFormatters(FormatterRegistry registry)org.springframework.format.datetime.standard中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.format.datetime.standard中的方法 修饰符和类型 方法 说明 voidDateTimeFormatterRegistrar. registerFormatters(FormatterRegistry registry)org.springframework.format.support中FormatterRegistry的使用
实现FormatterRegistry的org.springframework.format.support中的类 修饰符和类型 类 说明 classDefaultFormattingConversionServiceA specialization ofFormattingConversionServiceconfigured by default with converters and formatters appropriate for most applications.classFormattingConversionServiceAConversionServiceimplementation designed to be configured as aFormatterRegistry.参数类型为FormatterRegistry的org.springframework.format.support中的方法 修饰符和类型 方法 说明 static voidDefaultFormattingConversionService. addDefaultFormatters(FormatterRegistry formatterRegistry)Add formatters appropriate for most environments: including number formatters, JSR-354 Money & Currency formatters, JSR-310 Date-Time and/or Joda-Time formatters, depending on the presence of the corresponding API on the classpath.org.springframework.test.web.reactive.server中FormatterRegistry的使用
类型变量类型为FormatterRegistry的org.springframework.test.web.reactive.server中的方法参数 修饰符和类型 方法 说明 WebTestClient.ControllerSpecWebTestClient.ControllerSpec. formatters(Consumer<FormatterRegistry> consumer)Register formatters and converters to use for type conversion.org.springframework.web.reactive.config中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected voidDelegatingWebFluxConfiguration. addFormatters(FormatterRegistry registry)protected voidWebFluxConfigurationSupport. addFormatters(FormatterRegistry registry)Override this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionService.default voidWebFluxConfigurer. addFormatters(FormatterRegistry registry)Add customConvertersandFormattersfor performing type conversion and formatting of annotated controller method arguments.voidWebFluxConfigurerComposite. addFormatters(FormatterRegistry registry)org.springframework.web.servlet.config.annotation中FormatterRegistry的使用
参数类型为FormatterRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected voidDelegatingWebMvcConfiguration. addFormatters(FormatterRegistry registry)protected voidWebMvcConfigurationSupport. addFormatters(FormatterRegistry registry)Override this method to add customConverterand/orFormatterdelegates to the commonFormattingConversionService.default voidWebMvcConfigurer. addFormatters(FormatterRegistry registry)AddConvertersandFormattersin addition to the ones registered by default.voidWebMvcConfigurerAdapter. addFormatters(FormatterRegistry registry)已过时。AddConvertersandFormattersin addition to the ones registered by default.