Configure a Jackson's DeserializationProblemHandler in Spring environment [duplicate]
This question already has an answer here: Can't set ProblemHandler to ObjectMapper in Spring Boot 1 answer As I understood, Spring is already providing a bean for Jackson ObjectMapper . Therefore, instead of creating a new bean, I'm trying to customize this bean. From this blog post , and then this Github project I used Jackson2ObjectMapperBuilder bean to achieve this customization. @Bean public Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder(ApplicationContext context) { Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder(); builder.findModulesViaServiceLoader(true);