类 WebConversionService
java.lang.Object
cn.taketoday.core.conversion.support.GenericConversionService
cn.taketoday.format.support.FormattingConversionService
cn.taketoday.format.support.DefaultFormattingConversionService
cn.taketoday.web.config.format.WebConversionService
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.context.expression.EmbeddedValueResolverAware,cn.taketoday.core.conversion.ConversionService,cn.taketoday.core.conversion.ConverterRegistry,cn.taketoday.core.conversion.support.ConfigurableConversionService,cn.taketoday.format.FormatterRegistry
public class WebConversionService
extends cn.taketoday.format.support.DefaultFormattingConversionService
FormattingConversionService dedicated to web
applications for formatting and converting values to/from the web.
This service replaces the default implementations provided by
@EnableWebMvc
- 从以下版本开始:
- 4.0 2022/4/15 13:00
- 作者:
- Brian Clozel, Harry Yang
-
字段概要
从类继承的字段 cn.taketoday.format.support.DefaultFormattingConversionService
jsr354Present -
构造器概要
构造器构造器说明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. -
方法概要
修饰符和类型方法说明private voidaddFormatters(DateTimeFormatters dateTimeFormatters) private voidconfigure(Supplier<DateTimeFormatter> supplier, Consumer<DateTimeFormatter> consumer) private voidregisterJavaDate(DateTimeFormatters dateTimeFormatters) private voidregisterJsr310(DateTimeFormatters dateTimeFormatters) 从类继承的方法 cn.taketoday.format.support.DefaultFormattingConversionService
addDefaultFormatters从类继承的方法 cn.taketoday.format.support.FormattingConversionService
addFormatter, addFormatterForFieldAnnotation, addFormatterForFieldType, addFormatterForFieldType, addParser, addPrinter, setEmbeddedValueResolver从类继承的方法 cn.taketoday.core.conversion.support.GenericConversionService
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.core.conversion.ConversionService
getConverter, getConverter, getConverter, getConverter从接口继承的方法 cn.taketoday.core.conversion.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
-
-
方法详细资料
-
addFormatters
-
registerJsr310
-
configure
-
registerJavaDate
-