Skip to content
Snippets Groups Projects
Commit de873683 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Change MessageConverter order

Default to 'vnd.de.thm.arsnova.v3+json' if no specific content type is
requested via Accept header or path version prefix.
parent 9cbec4d4
1 merge request!89Foundation for development of version 3.0
...@@ -120,9 +120,9 @@ public class AppConfig extends WebMvcConfigurerAdapter { ...@@ -120,9 +120,9 @@ public class AppConfig extends WebMvcConfigurerAdapter {
@Override @Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
converters.add(stringMessageConverter());
converters.add(apiV2JsonMessageConverter());
converters.add(defaultJsonMessageConverter()); converters.add(defaultJsonMessageConverter());
converters.add(apiV2JsonMessageConverter());
converters.add(stringMessageConverter());
//converters.add(new MappingJackson2XmlHttpMessageConverter(builder.createXmlMapper(true).build())); //converters.add(new MappingJackson2XmlHttpMessageConverter(builder.createXmlMapper(true).build()));
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment