fastjson TypeUtils cast "java.time.*" fail ,cause by no Deserializers found;

vs3odd8k  于 2022-11-02  发布在  Java
关注(0)|答案(1)|浏览(122)

The way to get deserializer may not correct in the "TypeUtils.cast" method , this will resulting some derserializer not be found when doing cast;

please simply change the code below ;

final ObjectDeserializer objectDeserializer = config.getDeserializers().get(clazz);
---->
final ObjectDeserializer objectDeserializer = config.getDeserializer(clazz);

xvw2m8pv

xvw2m8pv1#

Could you provide some more information? (such as the version you're using)
And it would be good if you can provide a simple scenario that can reproduce this failure :)

相关问题