1.List不起作用(单个对象拷贝有用,list没有用)
cn.hutool.core.bean.BeanUtils.copyProperties(a, b);
org.springframework.beans.BeanUtils.copyProperties(a, b);
2.有效(使用JSONObject 先转成字符串再转成List对象)
List<User> users = com.alibaba.fastjson.JSONObject.parseObject(JSONObject.toJSONString(userList), new TypeReference<List<User>>() {
});