Spring 3 Conversion

7.5 Spring 3 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.

可以使用convert代替之前的PropertyEditor进行绑定类型转换



你可能感兴趣的:(Spring 3 Conversion)