Spring 3 Conversion

来源:互联网 发布:java与模式 pdf 编辑:程序博客网 时间:2024/06/10 23:46

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进行绑定类型转换



0 0
原创粉丝点击