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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -