Close

Spring - Built-in Formatter List

[Last Updated: Dec 22, 2023]

Spring comes with predefined formatter list. Some are defined in the following packages.

We can also find the list of registered formatters by using following code:

package com.logicbig.example;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;
import org.springframework.core.type.filter.AssignableTypeFilter;
import org.springframework.format.Formatter;

import java.util.Set;

public class SpringBuiltInFormatterFinder {
public static void main(String[] args) {
    ClassPathScanningCandidateComponentProvider provider =
            new ClassPathScanningCandidateComponentProvider(false);
    provider.addIncludeFilter(new AssignableTypeFilter(Formatter.class));
    Set<BeanDefinition> components = provider.findCandidateComponents("org/springframework");
    components.stream()
              .map(BeanDefinition::getBeanClassName)
              .forEach(System.out::println);
}
}

Output

org.springframework.format.datetime.joda.DurationFormatter
org.springframework.format.datetime.joda.MonthDayFormatter
org.springframework.format.datetime.joda.PeriodFormatter
org.springframework.format.datetime.joda.YearMonthFormatter
org.springframework.format.datetime.standard.DurationFormatter
org.springframework.format.datetime.standard.MonthDayFormatter
org.springframework.format.datetime.standard.PeriodFormatter
org.springframework.format.datetime.standard.InstantFormatter
org.springframework.format.datetime.standard.YearMonthFormatter
org.springframework.format.datetime.DateFormatter
org.springframework.format.number.NumberFormatter
org.springframework.format.number.money.Jsr354NumberFormatAnnotationFormatterFactory$NumberDecoratingFormatter
org.springframework.format.number.money.CurrencyUnitFormatter
org.springframework.format.number.money.MonetaryAmountFormatter
org.springframework.format.number.money.Jsr354NumberFormatAnnotationFormatterFactory$PatternDecoratingFormatter
org.springframework.format.number.PercentFormatter
org.springframework.format.number.CurrencyFormatter
org.springframework.format.number.NumberStyleFormatter
org.springframework.format.number.CurrencyStyleFormatter
org.springframework.format.number.PercentStyleFormatter

Or we can simply print the instance of the formatter/converter services instances:

package com.logicbig.example;

import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.format.support.DefaultFormattingConversionService;
import org.springframework.format.support.FormattingConversionService;

public class DefaultFormatterListExample {
  public static void main (String[] args) {

      ConversionService service = new DefaultConversionService();
      System.out.println("----- list for DefaultConversionService -----");
      System.out.println(service);

      service = new DefaultFormattingConversionService();
      System.out.println("----- list for DefaultFormattingConversionService -----");
      System.out.println(service);

      service = new FormattingConversionService();
      System.out.println("----- list for FormattingConversionService -----");
      System.out.println(service);
  }
}

Output

----- list for DefaultConversionService -----
ConversionService converters =
java.lang.Boolean -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@825d870
java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@7dc354ae
java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@261f8b4f
java.lang.Enum -> java.lang.Integer : org.springframework.core.convert.support.EnumToIntegerConverter@7edc9053
java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@59039c6f
java.lang.Integer -> java.lang.Enum : org.springframework.core.convert.support.IntegerToEnumConverterFactory@581c3578
java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@4e9f01d0
java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@2678a323
java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@2d73c39e
java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@52ba749b
java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@451d5974
java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@3e02c925
java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@2559b63a
java.lang.String -> java.nio.charset.Charset : org.springframework.core.convert.support.StringToCharsetConverter@2a947bee
java.lang.String -> java.util.Currency : org.springframework.core.convert.support.StringToCurrencyConverter@1f6a7ef4
java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@563f254c
java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@54285f7a
java.lang.String -> java.util.TimeZone : org.springframework.core.convert.support.StringToTimeZoneConverter@39d6fd60
java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@29df0d93
java.nio.charset.Charset -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@30d038e7
java.time.ZoneId -> java.util.TimeZone : org.springframework.core.convert.support.ZoneIdToTimeZoneConverter@3f2e8010
java.time.ZonedDateTime -> java.util.Calendar : org.springframework.core.convert.support.ZonedDateTimeToCalendarConverter@af9d951
java.util.Currency -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@5d6a1432
java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@131a2b00
java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@650e4218
java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@2419471e
org.springframework.core.convert.support.ArrayToArrayConverter@74b7a715
org.springframework.core.convert.support.ArrayToCollectionConverter@32dc1f68
org.springframework.core.convert.support.ArrayToObjectConverter@53e08f50
org.springframework.core.convert.support.ArrayToStringConverter@41fc7827
org.springframework.core.convert.support.ByteBufferConverter@34cc3d89
org.springframework.core.convert.support.ByteBufferConverter@34cc3d89
org.springframework.core.convert.support.ByteBufferConverter@34cc3d89
org.springframework.core.convert.support.ByteBufferConverter@34cc3d89
org.springframework.core.convert.support.CollectionToArrayConverter@25d585a9
org.springframework.core.convert.support.CollectionToCollectionConverter@1a782f2a
org.springframework.core.convert.support.CollectionToObjectConverter@5bdad9a1
org.springframework.core.convert.support.CollectionToStringConverter@53f20df0
org.springframework.core.convert.support.FallbackObjectToStringConverter@1a5a62a9
org.springframework.core.convert.support.IdToEntityConverter@5f8c9df2,org.springframework.core.convert.support.ObjectToObjectConverter@513f469e
org.springframework.core.convert.support.MapToMapConverter@488d5452
org.springframework.core.convert.support.ObjectToArrayConverter@716d7eba
org.springframework.core.convert.support.ObjectToCollectionConverter@4158f4ce
org.springframework.core.convert.support.ObjectToOptionalConverter@5e2d03e2
org.springframework.core.convert.support.StreamConverter@286fc98
org.springframework.core.convert.support.StreamConverter@286fc98
org.springframework.core.convert.support.StreamConverter@286fc98
org.springframework.core.convert.support.StreamConverter@286fc98
org.springframework.core.convert.support.StringToArrayConverter@83af002
org.springframework.core.convert.support.StringToCollectionConverter@c974d6c

----- list for DefaultFormattingConversionService -----
ConversionService converters =
@org.springframework.format.annotation.DateTimeFormat java.lang.Long -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329,@org.springframework.format.annotation.NumberFormat java.lang.Long -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.DateTimeFormat java.time.LocalDate -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.LocalDate -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@43768953
@org.springframework.format.annotation.DateTimeFormat java.time.LocalDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.LocalDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@40a32017
@org.springframework.format.annotation.DateTimeFormat java.time.LocalTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.LocalTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@c5ee767
@org.springframework.format.annotation.DateTimeFormat java.time.OffsetDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.OffsetDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@32e672f3
@org.springframework.format.annotation.DateTimeFormat java.time.OffsetTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.OffsetTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@3cc464fe
@org.springframework.format.annotation.DateTimeFormat java.time.ZonedDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.time.ZonedDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@1cdeb9e7
@org.springframework.format.annotation.DateTimeFormat java.util.Calendar -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329
@org.springframework.format.annotation.DateTimeFormat java.util.Date -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329
@org.springframework.format.annotation.NumberFormat java.lang.Byte -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.lang.Double -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.lang.Float -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.lang.Integer -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.lang.Short -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.math.BigDecimal -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
@org.springframework.format.annotation.NumberFormat java.math.BigInteger -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.Boolean -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@9445b6e
java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@1b371b74
java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@72a54202
java.lang.Enum -> java.lang.Integer : org.springframework.core.convert.support.EnumToIntegerConverter@2d26e51
java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@35632ef1
java.lang.Integer -> java.lang.Enum : org.springframework.core.convert.support.IntegerToEnumConverterFactory@29e6df28
java.lang.Long -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$LongToInstantConverter@70dcc45e
java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@5078a92a,java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@5762643b
java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@655aa436,java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@343606fb
java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@1f000eeb
java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@65b8dfb6
java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@4b99f55a
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.lang.Long: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329,java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Long: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalDate: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.LocalDate: org.springframework.format.datetime.standard.TemporalAccessorParser@559e4b57
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.LocalDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@67c00fa7
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.LocalTime: org.springframework.format.datetime.standard.TemporalAccessorParser@37680bb8
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.OffsetDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.OffsetDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@553cee3f
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.OffsetTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.OffsetTime: org.springframework.format.datetime.standard.TemporalAccessorParser@35f1e355
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.ZonedDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@590c5024,java.lang.String -> java.time.ZonedDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@6b9c440f
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Calendar: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Date: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@39e69329
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Byte: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Double: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Float: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Integer: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Short: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigDecimal: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigInteger: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@5a70b37d
java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@5129b61b
java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@514362f3
java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@162c6bfb
java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@45d22a7
java.lang.String -> java.nio.charset.Charset : org.springframework.core.convert.support.StringToCharsetConverter@446c8924
java.lang.String -> java.time.Duration: org.springframework.format.datetime.standard.DurationFormatter@198244fe
java.lang.String -> java.time.Instant: org.springframework.format.datetime.standard.InstantFormatter@34016ef2
java.lang.String -> java.time.MonthDay: org.springframework.format.datetime.standard.MonthDayFormatter@1c1a6bb6
java.lang.String -> java.time.Period: org.springframework.format.datetime.standard.PeriodFormatter@67e335b
java.lang.String -> java.time.YearMonth: org.springframework.format.datetime.standard.YearMonthFormatter@2353e7d0
java.lang.String -> java.util.Currency : org.springframework.core.convert.support.StringToCurrencyConverter@7a9cd40
java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@7754be43
java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@1ceccfa9
java.lang.String -> java.util.TimeZone : org.springframework.core.convert.support.StringToTimeZoneConverter@67be051c
java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@6eb80466
java.nio.charset.Charset -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@55ddc71e
java.time.Duration -> java.lang.String : org.springframework.format.datetime.standard.DurationFormatter@198244fe
java.time.Instant -> java.lang.Long : org.springframework.format.datetime.standard.DateTimeConverters$InstantToLongConverter@5be05f3c
java.time.Instant -> java.lang.String : org.springframework.format.datetime.standard.InstantFormatter@34016ef2
java.time.LocalDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$LocalDateTimeToLocalDateConverter@672911f5
java.time.LocalDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$LocalDateTimeToLocalTimeConverter@632cd235
java.time.MonthDay -> java.lang.String : org.springframework.format.datetime.standard.MonthDayFormatter@1c1a6bb6
java.time.OffsetDateTime -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToInstantConverter@e186ee2
java.time.OffsetDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalDateConverter@63c86061
java.time.OffsetDateTime -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalDateTimeConverter@2014c6e9
java.time.OffsetDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalTimeConverter@491232fe
java.time.OffsetDateTime -> java.time.ZonedDateTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToZonedDateTimeConverter@2e73d825
java.time.Period -> java.lang.String : org.springframework.format.datetime.standard.PeriodFormatter@67e335b
java.time.YearMonth -> java.lang.String : org.springframework.format.datetime.standard.YearMonthFormatter@2353e7d0
java.time.ZoneId -> java.util.TimeZone : org.springframework.core.convert.support.ZoneIdToTimeZoneConverter@467fda73
java.time.ZonedDateTime -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToInstantConverter@2e340bad
java.time.ZonedDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalDateConverter@76080683
java.time.ZonedDateTime -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalDateTimeConverter@1d86fed8
java.time.ZonedDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalTimeConverter@328fe7c5
java.time.ZonedDateTime -> java.time.OffsetDateTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToOffsetDateTimeConverter@18be2a27
java.time.ZonedDateTime -> java.util.Calendar : org.springframework.core.convert.support.ZonedDateTimeToCalendarConverter@6f955d1b
java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@41b4b3c4,java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@5c4b6ad4
java.util.Calendar -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToInstantConverter@6f38274
java.util.Calendar -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalDateConverter@60e2c76b
java.util.Calendar -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalDateTimeConverter@52ba0a9e
java.util.Calendar -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalTimeConverter@2d40caeb
java.util.Calendar -> java.time.OffsetDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToOffsetDateTimeConverter@50609fb2
java.util.Calendar -> java.time.ZonedDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToZonedDateTimeConverter@5645281d
java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@3b405d06,java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@4462abe5
java.util.Currency -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@3ce954b9
java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@45d2efd3,java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@3bf884b7
java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@64cc33ee,java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@693e8b85
java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@5b6c02fe
java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@27b20e1d
java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1802c994
org.springframework.core.convert.support.ArrayToArrayConverter@7ba941fd
org.springframework.core.convert.support.ArrayToCollectionConverter@6269dcba
org.springframework.core.convert.support.ArrayToObjectConverter@644c2e1d
org.springframework.core.convert.support.ArrayToStringConverter@6b4744cf
org.springframework.core.convert.support.ByteBufferConverter@6bc96f53
org.springframework.core.convert.support.ByteBufferConverter@6bc96f53
org.springframework.core.convert.support.ByteBufferConverter@6bc96f53
org.springframework.core.convert.support.ByteBufferConverter@6bc96f53
org.springframework.core.convert.support.CollectionToArrayConverter@551ce40c
org.springframework.core.convert.support.CollectionToCollectionConverter@75e96975
org.springframework.core.convert.support.CollectionToObjectConverter@7e1e5cba
org.springframework.core.convert.support.CollectionToStringConverter@2318844b
org.springframework.core.convert.support.FallbackObjectToStringConverter@60938b65
org.springframework.core.convert.support.IdToEntityConverter@4f86044d,org.springframework.core.convert.support.ObjectToObjectConverter@58877e44
org.springframework.core.convert.support.MapToMapConverter@59c9e77e
org.springframework.core.convert.support.ObjectToArrayConverter@7228c7fd
org.springframework.core.convert.support.ObjectToCollectionConverter@4abd6bab
org.springframework.core.convert.support.ObjectToOptionalConverter@25ab7fe9
org.springframework.core.convert.support.StreamConverter@2de0946b
org.springframework.core.convert.support.StreamConverter@2de0946b
org.springframework.core.convert.support.StreamConverter@2de0946b
org.springframework.core.convert.support.StreamConverter@2de0946b
org.springframework.core.convert.support.StringToArrayConverter@5ad046f3
org.springframework.core.convert.support.StringToCollectionConverter@7b27a905

----- list for FormattingConversionService -----
ConversionService converters =

Example Project

Dependencies and Technologies Used:

  • spring-context 6.1.2 (Spring Context)
     Version Compatibility: 4.0.7.RELEASE - 6.1.2Version List
    ×

    Version compatibilities of spring-context with this example:

    • 4.0.7.RELEASE
    • 4.0.8.RELEASE
    • 4.0.9.RELEASE
    • 4.1.0.RELEASE
    • 4.1.1.RELEASE
    • 4.1.2.RELEASE
    • 4.1.3.RELEASE
    • 4.1.4.RELEASE
    • 4.1.5.RELEASE
    • 4.1.6.RELEASE
    • 4.1.7.RELEASE
    • 4.1.8.RELEASE
    • 4.1.9.RELEASE
    • 4.2.0.RELEASE
    • 4.2.1.RELEASE
    • 4.2.2.RELEASE
    • 4.2.3.RELEASE
    • 4.2.4.RELEASE
    • 4.2.5.RELEASE
    • 4.2.6.RELEASE
    • 4.2.7.RELEASE
    • 4.2.8.RELEASE
    • 4.2.9.RELEASE
    • 4.3.0.RELEASE
    • 4.3.1.RELEASE
    • 4.3.2.RELEASE
    • 4.3.3.RELEASE
    • 4.3.4.RELEASE
    • 4.3.5.RELEASE
    • 4.3.6.RELEASE
    • 4.3.7.RELEASE
    • 4.3.8.RELEASE
    • 4.3.9.RELEASE
    • 4.3.10.RELEASE
    • 4.3.11.RELEASE
    • 4.3.12.RELEASE
    • 4.3.13.RELEASE
    • 4.3.14.RELEASE
    • 4.3.15.RELEASE
    • 4.3.16.RELEASE
    • 4.3.17.RELEASE
    • 4.3.18.RELEASE
    • 4.3.19.RELEASE
    • 4.3.20.RELEASE
    • 4.3.21.RELEASE
    • 4.3.22.RELEASE
    • 4.3.23.RELEASE
    • 4.3.24.RELEASE
    • 4.3.25.RELEASE
    • 4.3.26.RELEASE
    • 4.3.27.RELEASE
    • 4.3.28.RELEASE
    • 4.3.29.RELEASE
    • 4.3.30.RELEASE
    • 5.0.0.RELEASE
    • 5.0.1.RELEASE
    • 5.0.2.RELEASE
    • 5.0.3.RELEASE
    • 5.0.4.RELEASE
    • 5.0.5.RELEASE
    • 5.0.6.RELEASE
    • 5.0.7.RELEASE
    • 5.0.8.RELEASE
    • 5.0.9.RELEASE
    • 5.0.10.RELEASE
    • 5.0.11.RELEASE
    • 5.0.12.RELEASE
    • 5.0.13.RELEASE
    • 5.0.14.RELEASE
    • 5.0.15.RELEASE
    • 5.0.16.RELEASE
    • 5.0.17.RELEASE
    • 5.0.18.RELEASE
    • 5.0.19.RELEASE
    • 5.0.20.RELEASE
    • 5.1.0.RELEASE
    • 5.1.1.RELEASE
    • 5.1.2.RELEASE
    • 5.1.3.RELEASE
    • 5.1.4.RELEASE
    • 5.1.5.RELEASE
    • 5.1.6.RELEASE
    • 5.1.7.RELEASE
    • 5.1.8.RELEASE
    • 5.1.9.RELEASE
    • 5.1.10.RELEASE
    • 5.1.11.RELEASE
    • 5.1.12.RELEASE
    • 5.1.13.RELEASE
    • 5.1.14.RELEASE
    • 5.1.15.RELEASE
    • 5.1.16.RELEASE
    • 5.1.17.RELEASE
    • 5.1.18.RELEASE
    • 5.1.19.RELEASE
    • 5.1.20.RELEASE
    • 5.2.0.RELEASE
    • 5.2.1.RELEASE
    • 5.2.2.RELEASE
    • 5.2.3.RELEASE
    • 5.2.4.RELEASE
    • 5.2.5.RELEASE
    • 5.2.6.RELEASE
    • 5.2.7.RELEASE
    • 5.2.8.RELEASE
    • 5.2.9.RELEASE
    • 5.2.10.RELEASE
    • 5.2.11.RELEASE
    • 5.2.12.RELEASE
    • 5.2.13.RELEASE
    • 5.2.14.RELEASE
    • 5.2.15.RELEASE
    • 5.2.16.RELEASE
    • 5.2.17.RELEASE
    • 5.2.18.RELEASE
    • 5.2.19.RELEASE
    • 5.2.20.RELEASE
    • 5.2.21.RELEASE
    • 5.2.22.RELEASE
    • 5.2.23.RELEASE
    • 5.2.24.RELEASE
    • 5.2.25.RELEASE
    • 5.3.0
    • 5.3.1
    • 5.3.2
    • 5.3.3
    • 5.3.4
    • 5.3.5
    • 5.3.6
    • 5.3.7
    • 5.3.8
    • 5.3.9
    • 5.3.10
    • 5.3.11
    • 5.3.12
    • 5.3.13
    • 5.3.14
    • 5.3.15
    • 5.3.16
    • 5.3.17
    • 5.3.18
    • 5.3.19
    • 5.3.20
    • 5.3.21
    • 5.3.22
    • 5.3.23
    • 5.3.24
    • 5.3.25
    • 5.3.26
    • 5.3.27
    • 5.3.28
    • 5.3.29
    • 5.3.30
    • 5.3.31
    • Compatible Java Version: 17+
    • 6.0.0
    • 6.0.1
    • 6.0.2
    • 6.0.3
    • 6.0.4
    • 6.0.5
    • 6.0.6
    • 6.0.7
    • 6.0.8
    • 6.0.9
    • 6.0.10
    • 6.0.11
    • 6.0.12
    • 6.0.13
    • 6.0.14
    • 6.0.15
    • 6.1.0
    • 6.1.1
    • 6.1.2

    Versions in green have been tested.

  • JDK 17
  • Maven 3.8.1

Spring - Finding built-in formatter list Select All Download
  • spring-formatter-built-in-list
    • src
      • main
        • java
          • com
            • logicbig
              • example
                • SpringBuiltInFormatterFinder.java

    See Also