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);
}
}
Outputorg.springframework.format.datetime.DateFormatter org.springframework.format.datetime.standard.DurationFormatter org.springframework.format.datetime.standard.InstantFormatter org.springframework.format.datetime.standard.YearMonthFormatter org.springframework.format.datetime.standard.YearFormatter org.springframework.format.datetime.standard.MonthFormatter org.springframework.format.datetime.standard.MonthDayFormatter org.springframework.format.datetime.standard.PeriodFormatter org.springframework.format.number.PercentStyleFormatter org.springframework.format.number.NumberStyleFormatter org.springframework.format.number.money.CurrencyUnitFormatter org.springframework.format.number.money.Jsr354NumberFormatAnnotationFormatterFactory$PatternDecoratingFormatter org.springframework.format.number.money.Jsr354NumberFormatAnnotationFormatterFactory$NumberDecoratingFormatter org.springframework.format.number.money.MonetaryAmountFormatter org.springframework.format.number.CurrencyStyleFormatter
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@b129741 java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@3b7fd732 java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@7c03b49b java.lang.Enum -> java.lang.Integer : org.springframework.core.convert.support.EnumToIntegerConverter@6e114c19 java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@3c66ae04 java.lang.Integer -> java.lang.Enum : org.springframework.core.convert.support.IntegerToEnumConverterFactory@1c69835 java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@37282b1a java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@570796f7 java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@4ce3c8d1 java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@4b019a66 java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@52222460 java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@3bfe514c java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@170a9ca8 java.lang.String -> java.nio.charset.Charset : org.springframework.core.convert.support.StringToCharsetConverter@2841b43a java.lang.String -> java.util.Currency : org.springframework.core.convert.support.StringToCurrencyConverter@1923397e java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@157224b1 java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@4e2f6fdf java.lang.String -> java.util.TimeZone : org.springframework.core.convert.support.StringToTimeZoneConverter@20e62063 java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@565e156b java.lang.String -> java.util.regex.Pattern : org.springframework.core.convert.support.StringToPatternConverter@507df14e java.nio.charset.Charset -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@bcf44ab java.time.ZoneId -> java.util.TimeZone : org.springframework.core.convert.support.ZoneIdToTimeZoneConverter@5015cafb java.time.ZonedDateTime -> java.util.Calendar : org.springframework.core.convert.support.ZonedDateTimeToCalendarConverter@1f6f5caf java.util.Currency -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@587b7a java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@8614081 java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@596263cb java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@74a68d6b java.util.regex.Pattern -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@cb2ba90 org.springframework.core.convert.support.ArrayToArrayConverter@39b57e57 org.springframework.core.convert.support.ArrayToCollectionConverter@b76a981 org.springframework.core.convert.support.ArrayToObjectConverter@434bca3d org.springframework.core.convert.support.ArrayToStringConverter@3d859179 org.springframework.core.convert.support.ByteBufferConverter@2a611320 org.springframework.core.convert.support.ByteBufferConverter@2a611320 org.springframework.core.convert.support.ByteBufferConverter@2a611320 org.springframework.core.convert.support.ByteBufferConverter@2a611320 org.springframework.core.convert.support.CollectionToArrayConverter@3635eceb org.springframework.core.convert.support.CollectionToCollectionConverter@72e52c7f org.springframework.core.convert.support.CollectionToObjectConverter@3125128a org.springframework.core.convert.support.CollectionToStringConverter@24d38b7e org.springframework.core.convert.support.FallbackObjectToStringConverter@39997bfa org.springframework.core.convert.support.IdToEntityConverter@2a2f15e0,org.springframework.core.convert.support.ObjectToObjectConverter@4b69db52 org.springframework.core.convert.support.MapToMapConverter@3e20a780 org.springframework.core.convert.support.ObjectToArrayConverter@4ae438d9 org.springframework.core.convert.support.ObjectToCollectionConverter@2bccf4c org.springframework.core.convert.support.ObjectToOptionalConverter@253c8163 org.springframework.core.convert.support.ObjectToOptionalConverter@253c8163 org.springframework.core.convert.support.ObjectToOptionalConverter@253c8163 org.springframework.core.convert.support.StreamConverter@177858ba org.springframework.core.convert.support.StreamConverter@177858ba org.springframework.core.convert.support.StreamConverter@177858ba org.springframework.core.convert.support.StreamConverter@177858ba org.springframework.core.convert.support.StringToArrayConverter@2424b5c5 org.springframework.core.convert.support.StringToCollectionConverter@3d779d7a
----- list for DefaultFormattingConversionService ----- ConversionService converters = @org.springframework.format.annotation.DateTimeFormat java.lang.Long -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1,@org.springframework.format.annotation.NumberFormat java.lang.Long -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.DateTimeFormat java.time.Instant -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.Instant -> java.lang.String : org.springframework.format.datetime.standard.InstantFormatter@46ee1db4 @org.springframework.format.annotation.DateTimeFormat java.time.LocalDate -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.LocalDate -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@6e3eefc2 @org.springframework.format.annotation.DateTimeFormat java.time.LocalDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.LocalDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@4e51462c @org.springframework.format.annotation.DateTimeFormat java.time.LocalTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.LocalTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@391a43a1 @org.springframework.format.annotation.DateTimeFormat java.time.MonthDay -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.MonthDay -> java.lang.String : org.springframework.format.datetime.standard.MonthDayFormatter@45a5298e @org.springframework.format.annotation.DateTimeFormat java.time.OffsetDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.OffsetDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@45989475 @org.springframework.format.annotation.DateTimeFormat java.time.OffsetTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.OffsetTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@3a57eb8c @org.springframework.format.annotation.DateTimeFormat java.time.YearMonth -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.YearMonth -> java.lang.String : org.springframework.format.datetime.standard.YearMonthFormatter@b00d298 @org.springframework.format.annotation.DateTimeFormat java.time.ZonedDateTime -> java.lang.String: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.time.ZonedDateTime -> java.lang.String : org.springframework.format.datetime.standard.TemporalAccessorPrinter@57434c15 @org.springframework.format.annotation.DateTimeFormat java.util.Calendar -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1 @org.springframework.format.annotation.DateTimeFormat java.util.Date -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1 @org.springframework.format.annotation.NumberFormat java.lang.Byte -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.lang.Double -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.lang.Float -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.lang.Integer -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.lang.Short -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.math.BigDecimal -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a @org.springframework.format.annotation.NumberFormat java.math.BigInteger -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.Boolean -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@64a6fae1 java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@298eec6a java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1d586304 java.lang.Enum -> java.lang.Integer : org.springframework.core.convert.support.EnumToIntegerConverter@3ee92b41 java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@38840bdf java.lang.Integer -> java.lang.Enum : org.springframework.core.convert.support.IntegerToEnumConverterFactory@38795404 java.lang.Long -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$LongToInstantConverter@768ebf9e java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@680dccd2,java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@6d0341d4 java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@1273f04d,java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@62158b68 java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@498f7c31 java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@6a9a0a37 java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@7ba419d4 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.lang.Long: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1,java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Long: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.Instant: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.Instant: org.springframework.format.datetime.standard.InstantFormatter@46ee1db4 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalDate: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.LocalDate: org.springframework.format.datetime.standard.TemporalAccessorParser@6b9b046 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.LocalDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@233489bf java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.LocalTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.LocalTime: org.springframework.format.datetime.standard.TemporalAccessorParser@4993d0a9 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.MonthDay: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.MonthDay: org.springframework.format.datetime.standard.MonthDayFormatter@45a5298e java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.OffsetDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.OffsetDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@95444 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.OffsetTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.OffsetTime: org.springframework.format.datetime.standard.TemporalAccessorParser@537b52d2 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.YearMonth: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.YearMonth: org.springframework.format.datetime.standard.YearMonthFormatter@b00d298 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.time.ZonedDateTime: org.springframework.format.datetime.standard.Jsr310DateTimeFormatAnnotationFormatterFactory@827ac55,java.lang.String -> java.time.ZonedDateTime: org.springframework.format.datetime.standard.TemporalAccessorParser@37a3cee8 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Calendar: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1 java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Date: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@5a936bc1 java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Byte: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Double: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Float: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Integer: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Short: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigDecimal: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigInteger: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@1845e78a java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@7ae6ae68 java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@6f60c5fc java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@6402a9d8 java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@7ad8a36b java.lang.String -> java.nio.charset.Charset : org.springframework.core.convert.support.StringToCharsetConverter@6dd5ec7b java.lang.String -> java.time.Duration: org.springframework.format.datetime.standard.DurationFormatter@49af5728 java.lang.String -> java.time.Month: org.springframework.format.datetime.standard.MonthFormatter@572bd5e6 java.lang.String -> java.time.Period: org.springframework.format.datetime.standard.PeriodFormatter@144a8b3 java.lang.String -> java.time.Year: org.springframework.format.datetime.standard.YearFormatter@71274e6e java.lang.String -> java.util.Currency : org.springframework.core.convert.support.StringToCurrencyConverter@2392b2f0 java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@26b9cf55 java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@3b8112e9 java.lang.String -> java.util.TimeZone : org.springframework.core.convert.support.StringToTimeZoneConverter@7b637f82 java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@1945e312 java.lang.String -> java.util.regex.Pattern : org.springframework.core.convert.support.StringToPatternConverter@117bcf63 java.nio.charset.Charset -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@59495a20 java.time.Duration -> java.lang.String : org.springframework.format.datetime.standard.DurationFormatter@49af5728 java.time.Instant -> java.lang.Long : org.springframework.format.datetime.standard.DateTimeConverters$InstantToLongConverter@79b0881b java.time.LocalDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$LocalDateTimeToLocalDateConverter@5aea7444 java.time.LocalDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$LocalDateTimeToLocalTimeConverter@76b9772d java.time.Month -> java.lang.String : org.springframework.format.datetime.standard.MonthFormatter@572bd5e6 java.time.OffsetDateTime -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToInstantConverter@663f53c6 java.time.OffsetDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalDateConverter@1b26952a java.time.OffsetDateTime -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalDateTimeConverter@20cd73c java.time.OffsetDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToLocalTimeConverter@66353cfd java.time.OffsetDateTime -> java.time.ZonedDateTime : org.springframework.format.datetime.standard.DateTimeConverters$OffsetDateTimeToZonedDateTimeConverter@2ea67c7 java.time.Period -> java.lang.String : org.springframework.format.datetime.standard.PeriodFormatter@144a8b3 java.time.Year -> java.lang.String : org.springframework.format.datetime.standard.YearFormatter@71274e6e java.time.ZoneId -> java.util.TimeZone : org.springframework.core.convert.support.ZoneIdToTimeZoneConverter@7e7d6525 java.time.ZonedDateTime -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToInstantConverter@eb72dcb java.time.ZonedDateTime -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalDateConverter@6eedf14 java.time.ZonedDateTime -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalDateTimeConverter@48bcb7b0 java.time.ZonedDateTime -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToLocalTimeConverter@5a98e7b3 java.time.ZonedDateTime -> java.time.OffsetDateTime : org.springframework.format.datetime.standard.DateTimeConverters$ZonedDateTimeToOffsetDateTimeConverter@2745a99f java.time.ZonedDateTime -> java.util.Calendar : org.springframework.core.convert.support.ZonedDateTimeToCalendarConverter@185d4f69 java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@7d7182e6,java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@6efa5f32 java.util.Calendar -> java.time.Instant : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToInstantConverter@1b317c63 java.util.Calendar -> java.time.LocalDate : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalDateConverter@2cd4ef0b java.util.Calendar -> java.time.LocalDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalDateTimeConverter@771ad8e1 java.util.Calendar -> java.time.LocalTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToLocalTimeConverter@1c599e8 java.util.Calendar -> java.time.OffsetDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToOffsetDateTimeConverter@5ba967da java.util.Calendar -> java.time.ZonedDateTime : org.springframework.format.datetime.standard.DateTimeConverters$CalendarToZonedDateTimeConverter@b01b75f java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@4b696af9,java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@404e6828 java.util.Currency -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@461d5ee java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@24813af4,java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@4da754bd java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@49ce7164,java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@4abf458c java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@78ba675a java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@463a537d java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@739089f5 java.util.regex.Pattern -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@7c00f8ee org.springframework.core.convert.support.ArrayToArrayConverter@681fdf1a org.springframework.core.convert.support.ArrayToCollectionConverter@78a37e89 org.springframework.core.convert.support.ArrayToObjectConverter@14bc4e83 org.springframework.core.convert.support.ArrayToStringConverter@1011c16a org.springframework.core.convert.support.ByteBufferConverter@3824b164 org.springframework.core.convert.support.ByteBufferConverter@3824b164 org.springframework.core.convert.support.ByteBufferConverter@3824b164 org.springframework.core.convert.support.ByteBufferConverter@3824b164 org.springframework.core.convert.support.CollectionToArrayConverter@4746c5e org.springframework.core.convert.support.CollectionToCollectionConverter@7734cfd2 org.springframework.core.convert.support.CollectionToObjectConverter@6c998f24 org.springframework.core.convert.support.CollectionToStringConverter@38670dc8 org.springframework.core.convert.support.FallbackObjectToStringConverter@62bf4148 org.springframework.core.convert.support.IdToEntityConverter@6e807e5e,org.springframework.core.convert.support.ObjectToObjectConverter@5dbc448e org.springframework.core.convert.support.MapToMapConverter@548556d8 org.springframework.core.convert.support.ObjectToArrayConverter@15b12221 org.springframework.core.convert.support.ObjectToCollectionConverter@ade555f org.springframework.core.convert.support.ObjectToOptionalConverter@2838c3b6 org.springframework.core.convert.support.ObjectToOptionalConverter@2838c3b6 org.springframework.core.convert.support.ObjectToOptionalConverter@2838c3b6 org.springframework.core.convert.support.StreamConverter@41e72eef org.springframework.core.convert.support.StreamConverter@41e72eef org.springframework.core.convert.support.StreamConverter@41e72eef org.springframework.core.convert.support.StreamConverter@41e72eef org.springframework.core.convert.support.StringToArrayConverter@709a423b org.springframework.core.convert.support.StringToCollectionConverter@4f468a18
----- list for FormattingConversionService ----- ConversionService converters =
Example ProjectDependencies and Technologies Used: - spring-context 6.2.12 (Spring Context)
Version Compatibility: 4.0.7.RELEASE - 6.2.12 Version compatibilities of spring-context with this example: Versions in green have been tested.
- JDK 25
- Maven 3.9.11
|
|