类 WebConversionService

  • 所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.core.convert.ConversionService, org.springframework.core.convert.converter.ConverterRegistry, org.springframework.core.convert.support.ConfigurableConversionService, org.springframework.format.FormatterRegistry

    public class WebConversionService
    extends org.springframework.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 and EnableWebFlux.

    从以下版本开始:
    2.0.0
    • 构造器概要

      构造器 
      构造器说明
      WebConversionService​(String dateFormat)
      Create a new WebConversionService that configures formatters with the provided date format, or register the default ones if no custom format is provided.
    • 方法概要

      • 从类继承的方法 org.springframework.format.support.DefaultFormattingConversionService

        addDefaultFormatters
      • 从类继承的方法 org.springframework.format.support.FormattingConversionService

        addFormatter, addFormatterForFieldAnnotation, addFormatterForFieldType, addFormatterForFieldType, setEmbeddedValueResolver
      • 从类继承的方法 org.springframework.core.convert.support.GenericConversionService

        addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString
      • 从接口继承的方法 org.springframework.core.convert.converter.ConverterRegistry

        addConverter, addConverter, addConverter, addConverterFactory, removeConvertible
    • 构造器详细资料

      • WebConversionService

        public WebConversionService​(String dateFormat)
        Create a new WebConversionService that configures formatters with the provided date format, or register the default ones if no custom format is provided.
        参数:
        dateFormat - the custom date format to use for date conversions