java - @JsonDeserialize converter use StdDelegatingDeserializer by default -
i'm trying use @jsondeserialize annotation converter
@jsondeserialize(converter = pgjsonconverter.class) i'm using spring data rest project , when sending put request there calling deserialize method super class jsondeserializer of stddelegatingdeserializer
public t deserialize(jsonparser p, deserializationcontext ctxt, t intovalue) throws ioexception, jsonprocessingexception { throw new unsupportedoperationexception("can not update object of type " +intovalue.getclass().getname()+" (by deserializer of type "+getclass().getname()+")"); } i'f don't use @jsondeserialize have beandeserializer instead of stddelegatingdeserializer.
in deserializecache:356 found condition
converter<object,object> conv = beandesc.finddeserializationconverter(); if (conv == null) { // nope, construct in normal way return (jsondeserializer<object>) _createdeserializer2(ctxt, factory, type, beandesc); } my goal use beandeserializer custom converter. how implement this?
Comments
Post a Comment