feign 无法转换INode

Blade 未结 0 966
理想三旬
理想三旬 剑者 2019-08-30 15:02

一、该问题的重现步骤是什么?

1. 

image.png

2. 因为出现错误所以一直调用fallback

3.


二、你期待的结果是什么?实际看到的又是什么?

期待可以获取到值


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladeX 2.0.7  MAC


四、请提供详细的错误堆栈信息,这很重要。


转换失败


2019-08-30 14:55:44.444 ERROR 58992 --- [-blade-system-2] o.s.core.cloud.feign.BladeFeignFallback  : BladeFeignFallback:[org.springblade.system.feign.ISysClient.getDeptTree] serviceId:[blade-system] message:[Type definition error: [simple type, class org.springblade.core.tool.node.INode]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.springblade.core.tool.node.INode` (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: 91] (through reference chain: org.springblade.core.tool.api.R["data"]->java.util.ArrayList[0]->org.springblade.system.vo.DeptVO["children"]->java.util.ArrayList[0])]


五、若有更多详细信息,请在下面提供。



回答
  • 消灭零回复
提交回复