Hello,
In Spring Boot 3, the ObjectMapper configuration used to automatically configure a SpringHandlerInstantiator (through Jackson2ObjectMapperBuilder).
Now that Jackson2ObjectMapperBuilder is deprecated in favor of using Jackson builders, the new JacksonAutoConfiguration class does not configure JacksonHandlerInstantiator by default inside JsonMapper.
This results in my custom serializer to fail to instantiate now because it injects a bean/
It would be nice to recover this default behavior from Spring Boot 3 so that Spring Boot automatically configures JacksonHandlerInstantiator in the JsonMapper.
What do you think ?
Hello,
In Spring Boot 3, the
ObjectMapperconfiguration used to automatically configure aSpringHandlerInstantiator(throughJackson2ObjectMapperBuilder).Now that
Jackson2ObjectMapperBuilderis deprecated in favor of using Jackson builders, the newJacksonAutoConfigurationclass does not configureJacksonHandlerInstantiatorby default insideJsonMapper.This results in my custom serializer to fail to instantiate now because it injects a bean/
It would be nice to recover this default behavior from Spring Boot 3 so that Spring Boot automatically configures
JacksonHandlerInstantiatorin theJsonMapper.What do you think ?