//对象初始化C c=new C(); A a=new A(); B b=new B();//合并AB为C BeanUtils.copyProperties(a,c); BeanUtils.copyProperties(b,c);