美文网首页
关于java.util.LinkedHashMap cannot

关于java.util.LinkedHashMap cannot

作者: 激扬文字 | 来源:发表于2021-03-21 16:24 被阅读0次

    解决方法:

    List<UserVO> licenses = new Gson().fromJson(new Gson().toJson(result), new TypeToken<List<UserVO>>(){}.getType());

    也就是对报错的地方,再一次进行new Gson().toJson(result)。前提是result是对象,不是JSON数据了

    相关文章

      网友评论

          本文标题:关于java.util.LinkedHashMap cannot

          本文链接:https://www.haomeiwen.com/subject/aotocltx.html