需要再做一次转换,问题就解决了
List<UserAnswerDto> userAnswerDtoList1 = (List<UserAnswerDto>) jsonParam.get("answerlist");
List<UserAnswerDto> userAnswerDtoList=JSON.parseArray(JSON.toJSONString(userAnswerDtoList1),UserAnswerDto.class);
java.util.LinkedHashMap cannot be cast to ......的解决办法
最新推荐文章于 2024-05-01 14:23:08 发布