【MapSheep】
[好记性不如烂笔头]
  1. 透传
  Student magotan = new Student(1, "NEW MAGOTAN");
  Student passat = new Student();
  // 将迈腾的组件复制到帕萨特中
  BeanUtils.copyProperties(magotan, passat);
  System.out.println(JSON.toJSON(passat));
  // TODO: {"name":"NEW MAGOTAN","id":1}
posted on 2021-06-21 10:59  (Play)  阅读(97)  评论(0编辑  收藏  举报