List<Map>转换为List<实体>
List<YourEntityClass> entityList = JSON.parseArray(JSON.toJSONString(mapList), YourEntityClass.class); List<YourEntityClass> entityList = JSON.parseObject(JSON.toJSONString(mapList), new TypeReference<List<YourEntityClass>>() {}); List<YourEntityClass> entityList = mapList.stream().map(i -> JSON.parseObject(JSON.toJSONString(i), YourEntityClass.class)).collect(Collectors.toList());

浙公网安备 33010602011771号