类 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
  • 构造器概要

    构造器
    构造器
    说明
    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 void
    addFormatters(DateTimeFormatters dateTimeFormatters)
     
    private void
     
    private void
     
    private void
    registerJsr310(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

      public 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.
      参数:
      dateTimeFormatters - the formatters to use for date, time, and date-time formatting
  • 方法详细资料