ApplicationConversionService
A specialization of FormattingConversionService configured by default with converters and formatters appropriate for most Spring Boot applications.
Designed for direct instantiation but also exposes the static addApplicationConverters and addApplicationFormatters utility methods for ad-hoc use against registry instance.
Author
Phillip Webb
Since
2.0.0
Functions
Link copied to clipboard
Add converters useful for most Spring Boot applications.
Link copied to clipboard
Add formatters useful for most Spring Boot applications.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Add converters to support delimited strings.
Link copied to clipboard
Link copied to clipboard
open fun addFormatterForFieldAnnotation(annotationFormatterFactory: AnnotationFormatterFactory<out Annotation>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Configure the given FormatterRegistry with formatters and converters appropriate for most Spring Boot applications.
Link copied to clipboard
Return a shared default application
ConversionService
instance, lazily building it once needed.Link copied to clipboard
open fun isConvertViaObjectSourceType(sourceType: TypeDescriptor, targetType: TypeDescriptor): Boolean
Return
true
if objects of sourceType
can be converted to the targetType
and the converter has Object.class
as a supported source type.Link copied to clipboard
Link copied to clipboard