Open hauter opened 8 years ago
I solved this problem
@Configuration
@ComponentScan(basePackages = "eu.kielczewski.example")
public class AppConfig extends WebMvcConfigurerAdapter {
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(new MappingJackson2HttpMessageConverter());
super.configureMessageConverters(converters);
}
}
I want to convert json to object, but I get
415 Unsupported Media Type
How can I do that?