1、a,b为对象 a拷贝到b
import org.springframework.beans.BeanUtils
BeanUtils.copyProperties(a, b);
2、a,b为对象 b拷贝到a
import org.apache.commons.beanutils.BeanUtils
BeanUtils.copyProperties(a, b);
1、a,b为对象 a拷贝到b
import org.springframework.beans.BeanUtils
BeanUtils.copyProperties(a, b);
2、a,b为对象 b拷贝到a
import org.apache.commons.beanutils.BeanUtils
BeanUtils.copyProperties(a, b);