BeanUtils的介绍

来源:互联网 发布:linux查看mysql连接数 编辑:程序博客网 时间:2024/06/05 19:36

介绍BeanUtils的功能


使用方法:

maven依赖:

<dependency>    <groupId>commons-beanutils</groupId>    <artifactId>commons-beanutils</artifactId>    <version>1.8.3</version></dependency>


支持以下操作:


1.属性的动态getter,setter 

         a.当属性为Collection,Map时的动态读取:


2.beanCompartor 动态排序 



3.Converter 把Request或ResultSet中的字符串绑定到对象的属性



4,bean的copy以及拷贝



5.Map,List集合转化为Bean




gitHub源码:https://github.com/apache/commons-beanutils/

0 0