A a = new A(); B b = new B(); //将A的属性拷贝到B上 BeanUtils.copyProperties(a,b) 转载于:https://www.cnblogs.com/qiyc/p/6995574.html