org.springframework.core.convert.support

Class DefaultConversionService

    • Constructor Detail

      • DefaultConversionService

        public DefaultConversionService()
        Create a new DefaultConversionService with the set of default converters.
    • Method Detail

      • addDefaultConverters

        public static void addDefaultConverters(ConverterRegistry converterRegistry)
        Add converters appropriate for most environments.
        Parameters:
        converterRegistry - the registry of converters to add to (must also be castable to ConversionService)
        Throws:
        ClassCastException - if the converterRegistry could not be cast to a ConversionService