- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.4k
Closed
Milestone
Description
It's a valid use case that reuse the same configuration over different data formats
ObjectMapper jsonObjectMapper = new ObjectMapper();
// do some configuration ...
ObjectMapper cborObjectMapper = jsonObjectMapper.copyWith(new SmileFactory());Spring Boot configuration take affect only json format, this will make it possible to all format, for example
 @Bean 
 @ConditionalOnMissingBean(value = MappingJackson2CborHttpMessageConverter.class) 
// other conditions
 MappingJackson2CborHttpMessageConverter mappingJackson2CborHttpMessageConverter(ObjectMapper objectMapper) { 
 	return new MappingJackson2CborHttpMessageConverter(objectMapper.copyWith(new CBORFactory())); 
 } Metadata
Metadata
Assignees
Labels
No labels