Customizable Jackson ObjectMapper in WebFluxConfigurationSupport [SPR-15247] #19812
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Attila Király opened SPR-15247 and commented
Currently
WebFluxConfigurationSupport
(in itsaddDefaultHttpMessageReaders
andaddDefaultHttpMessageWriters
methods) creates ObjectMapper-s indirectly through thenew Jackson2JsonDecoder()
andnew Jackson2JsonEncoder()
calls.These ObjectMapper-s are not passed through any hooks which would make it possible to customize them (for example to disable
SerializationFeature.WRITE_DATES_AS_TIMESTAMPS
).The only way I could customize it (and still keep the default writers added) was to create a custom
WebFluxConfigurer
:It would be great if (for example)
WebFluxConfigurer
had a callback method to customize the ObjectMapper (or anytlhing equivalent with this).Affects: 5.0 M4
Issue Links:
Referenced from: commits f8a21ab, 4a7218f, dc3851d
The text was updated successfully, but these errors were encountered: