i using spring boot jackson create rest api. know @jsonproperty
annotation has defaultvalue
field. in it's javadoc said:
textual default value defined metadata. note: core databind not make use of value; exposed extension modules.
so found modules jackson on maven central repository, couldn't find anyware information extension should use enable defaultvalue handling.
is there such module?
as per documentations of jsonproperty , defaultvalue property may used document expected default value. have added property in version 2.5. , per view
it possible in future annotation used value defaulting, , default values of creator properties,since support {@link #required()} in 2.6 , above.
as of till version 2.8 not able use annotation set default value. here may rely on java have default values member variables.
Comments
Post a Comment