Longmanfei 发表于 2013-1-14 18:23:20

BeanUtils应用

 
      由于Sun公司的内省API过于繁琐,所以Apache组织结合很多实际开发中的应用场景开发了一套简单、易用的API操作Bean的属性——BeanUtils
Beanutils工具包的常用类:
 

[*]BeanUtils
[*]PropertyUtils
[*]ConvertUtils.regsiter(Converter convert, Class clazz)
[*]自定义转换器
首先我们定义bean类
页: [1]
查看完整版本: BeanUtils应用