to. If the target type is not String, Spring automatically converts to the appropriate type. All simple types such as int, long, Date, etc. are supported. You can further customize the conversion process through a WebDataBinder (see the section called “Customizing WebDataBinder initialization”) or by registering Formatters with the FormattingConversionService (see Section 8.6, “Spring Field Formatting”).
8.5 Spring Type Conversion
Spring 3 introduces a core.convert package that provides a general type conversion system. The
system defines an SPI to implement type conversion logic, as well as an API to execute type conversions
at runtime. Within a Spring container, this system can be used as an alternative to PropertyEditors to
convert externalized bean property value strings to required property types. The public API may also be
used anywhere in your application where type conversion is needed.