dlqEntityService.save(contractUpdateMessage);} 现在,我有一个在一个或另一个类的实例上随机生成的测试have custom deserializer, or contain additional type information; nested exception is com.fasterxml.jackson.databind.JsonMappingExceptionRestTemplate发送的</e
(use= JsonTypeInfo.Id.NAME, include= JsonTypeInfo.As.PROPERTY, property="type")IC mm = new Elemencik();
String res = mapper.writeValueAsString(mm); 在序列化之后,我看到映射器获取了注释@JsonTypeName("DS")
但我首先收到的文件是这个json: "name":"This is some name",}
我需要将它映射到我的ExampleClass(use = JsonTypeInfo.Id.NAME,include = JsonTypeInfo.As.WRAPPER_OBJECT)指定了类,所以它试图将"name“字段从接收到的</em