Apache 的BeanUtils的属性复制功能
下载地址(http://jakarta.apache.org/commons/beanutils/)
Tuser user=new User(); Tuser user2=new User(); user.setName("T"); try{ BeanUtils.copyProperties(user2,user); }catch(Exception e){ e.printStackTrace(); }
博客介绍了Apache的BeanUtils的属性复制功能,并给出其下载地址为http://jakarta.apache.org/commons/beanutils/ 。
Apache 的BeanUtils的属性复制功能
下载地址(http://jakarta.apache.org/commons/beanutils/)
Tuser user=new User(); Tuser user2=new User(); user.setName("T"); try{ BeanUtils.copyProperties(user2,user); }catch(Exception e){ e.printStackTrace(); }
1396

被折叠的 条评论
为什么被折叠?