【Java】DTO对象转换

参考

import org.springframework.beans.BeanUtils;
BeanUtils.copyProperties(dto1, dto2) // 将 dto1 转换为 dto2

 

posted @ 2022-06-08 19:07  淡怀  阅读(547)  评论(0)    收藏  举报