1:BeanUtils.copyProperties(source, target);
2:待拷贝的对象中的属性要添加@ApiField()注解
3:注意,如果source为null,则会报错
Exception in thread "main" java.lang.IllegalArgumentException: Source must not be null
1:BeanUtils.copyProperties(source, target);
2:待拷贝的对象中的属性要添加@ApiField()注解
3:注意,如果source为null,则会报错
Exception in thread "main" java.lang.IllegalArgumentException: Source must not be null