목차

SpringBoot HttpMessageConverters

Auto Configuration

MappingJackson2HttpMessageConverter 의 설정변경

@Bean
public MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter(ObjectMapper objectMapper) {
    var mappingJackson2HttpMessageConverter = new MappingJackson2HttpMessageConverter(objectMapper);
    mappingJackson2HttpMessageConverter.setSupportedMediaTypes(Lists.newArrayList(MediaType.APPLICATION_JSON_UTF8));
    return mappingJackson2HttpMessageConverter;
}