Add a way to combine more than one AnnotationIntrospector in Jackson2ObjectMapperBuilder instead of overriding it #22830
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Enhancement
Today there is an option to provide custom
annotationIntrospector
to theJackson2ObjectMapperBuilder
viaJackson2ObjectMapperBuilderCustomizer
:However, in that way I'm replacing existing
introspector
. So if some other introspectors were added by some libs - they will be just lost and today there seems to be no option to extend existing ones instead.Would be good to adjust
org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
to either provide some way to get currently configuredannotationIntrospector
(so that I can use something likeAnnotationIntrospector.pair
to combine it with mine) or to have some other way to add new introspector to current one instead of replacing it.The text was updated successfully, but these errors were encountered: