您的位置:首页 > 编程语言 > Java开发

Spring 3 Conversion

2016-05-09 22:38 399 查看


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进行绑定类型转换
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: