Class 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
- All Implemented Interfaces:
Aware, EmbeddedValueResolverAware, ConversionService, ConverterRegistry, ConfigurableConversionService, FormatterRegistry
FormattingConversionService dedicated to web
applications for formatting and converting values to/from the web.- Since:
- 2.0.0
- Author:
- Brian Clozel
-
Constructor Summary
ConstructorsConstructorDescriptionWebConversionService(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. -
Method Summary
Methods inherited from class DefaultFormattingConversionService
addDefaultFormattersMethods inherited from class FormattingConversionService
addFormatter, addFormatterForFieldAnnotation, addFormatterForFieldType, addFormatterForFieldType, addParser, addPrinter, setEmbeddedValueResolverMethods inherited from class GenericConversionService
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConversionService
convertMethods inherited from interface ConverterRegistry
addConverter, addConverter, addConverter, addConverterFactory, removeConvertible
-
Constructor Details
-
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.- Parameters:
dateTimeFormatters- the formatters to use for date, time, and date-time formatting- Since:
- 2.3.0
-