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
.
Constructor and Description |
---|
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.
|
addDefaultFormatters
addFormatter, addFormatterForFieldAnnotation, addFormatterForFieldType, addFormatterForFieldType, setEmbeddedValueResolver
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString
public WebConversionService(String dateFormat)
dateFormat
- the custom date format to use for date conversionsCopyright © 2020 Pivotal Software, Inc.. All rights reserved.