类 WebConversionService
java.lang.Object
org.springframework.core.convert.support.GenericConversionService
org.springframework.format.support.FormattingConversionService
org.springframework.format.support.DefaultFormattingConversionService
org.springframework.boot.autoconfigure.web.format.WebConversionService
- 所有已实现的接口:
Aware,EmbeddedValueResolverAware,ConversionService,ConverterRegistry,ConfigurableConversionService,FormatterRegistry
FormattingConversionService dedicated to web
applications for formatting and converting values to/from the web.
This service replaces the default implementations provided by
@EnableWebMvc
and @EnableWebFlux.
- 从以下版本开始:
- 2.0.0
- 作者:
- Brian Clozel
-
构造器概要
构造器构造器说明WebConversionService(DateTimeFormatters dateTimeFormatters) Create a new WebConversionService that configures formatters with the provided date, time, and date-time formats, or registers the default if no custom format is provided. -
方法概要
从类继承的方法 org.springframework.format.support.DefaultFormattingConversionService
addDefaultFormatters从类继承的方法 org.springframework.format.support.FormattingConversionService
addFormatter, addFormatterForFieldAnnotation, addFormatterForFieldType, addFormatterForFieldType, addParser, addPrinter, setEmbeddedValueResolver从类继承的方法 org.springframework.core.convert.support.GenericConversionService
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.springframework.core.convert.ConversionService
convert从接口继承的方法 org.springframework.core.convert.converter.ConverterRegistry
addConverter, addConverter, addConverter, addConverterFactory, removeConvertible
-
构造器详细资料
-
WebConversionService
Create a new WebConversionService that configures formatters with the provided date, time, and date-time formats, or registers the default if no custom format is provided.- 参数:
dateTimeFormatters- the formatters to use for date, time, and date-time formatting- 从以下版本开始:
- 2.3.0
-