BeanUtils.copyProperties简单使用

使用到的pom依赖
import org.springframework.beans.BeanUtils;
BeanUtils.copyProperties(groceriesDto,recyDailyGroceriesDTO);
是将groceriesDto的数据复制给recyDailyGroceriesDTO
前提是需要groceriesDto有数据,recyDailyGroceriesDTO为空,为空了好接受来自groceriesDto的数据