首页 > Web开发 > 详细

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.baomidou.mybatisplus.core.metadata.IPage

时间:2021-06-02 00:09:56      阅读:40      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.baomidou.mybatisplus.core.metadata.IPage` (no Creators, like default construct, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
at [Source: (PushbackInputStream); line: 1, column: 1]

 

Mybatis-plus的 IPage,没有默认的构造器,通过feign调用时报错

解决方法就是用另一个类包装IPage对象,添加需要的IPage里的数据就行

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `com.baomidou.mybatisplus.core.metadata.IPage

原文:https://www.cnblogs.com/jadexu07/p/14838681.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!