There has already been some discussions about Jackson2ObjectMapperBuilder. And I think it's time to provide an alternative. I implemented my custom JacksonConfiguration for my projects using com.fasterxml.jackson.databind.json.JsonMapper.builder() and adding most of the fancy defaults from both the JacksonProperties in spring boot and Jackson2ObjectMapperBuilder. The result is basically the same ObjectMapper with the same configuration but without using the "web" dependency. It shouldn't be difficult to replicate the same functionality using JsonMapper.builder() without having to depend on the unrelated spring-web module. Most of the work is already done in the JacksonAutoConfiguration. So it would be great to have a JsonMapperBuilderCustomizer and modify the implementation so the ObjectMapper is created using JsonMapper.builder() when the Jackson2ObjectMapperBuilder class is not present.

Comment From: wilkinsona

Thanks for the suggestion but I don't think we should do this. Duplicating the logic in Jackson2ObjectMapperBuilder and in the code that maps the properties to the builders would be a maintenance burden, particularly as we'd have to ensure that things behaved identically with and without Jackson2ObjectMapperBuilder on the classpath. That ongoing cost outweighs the benefits. If you have any follow-up comments, please make them on https://github.com/spring-projects/spring-boot/issues/18639. Splitting things across two issues makes it harder to keep tracker of the arguments for and against.