Python 官方文档:入门教程 => 点击学习
目录feign.codec.DecodeException异常解决错误Typedefinitionerror:[simpletype,classXXXfeign.codec.Deco
出现该异常:
feign.codec.DecodeException: Type definition error: [simple type, class entity.Result]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `entity.Result` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (PushbackInputStream); line: 1, column: 2]
报该错的原因是 构造的Result对象没有 空的构造器
加上 空的构造器即可。
类上面加
@AllArgsConstructor
@NoArgsConstructor
以上为个人经验,希望能给大家一个参考,也希望大家多多支持编程网。
--结束END--
本文标题: 关于feign.codec.DecodeException异常的解决方案
本文链接: https://www.lsjlt.com/news/142626.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0