1.引入引入hutool工具类
<!--hutool工具类-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.3</version>
</dependency>
2.A -> B
B b = BeanUtil.copyProperties(a,B.class);
3.List<A> -> List<B>
List<B> bList = BeanUtil.copyToList(aList, B.class);