Removing HTML media type
This commit is contained in:
parent
12ce3ee247
commit
67ae14e8d4
|
@ -23,14 +23,13 @@ public class ContentManagementWebConfig extends WebMvcConfigurerAdapter {
|
|||
|
||||
@Override
|
||||
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
|
||||
configurer.favorPathExtension(true).
|
||||
favorParameter(false).
|
||||
configurer.favorPathExtension(false).
|
||||
favorParameter(true).
|
||||
parameterName("mediaType").
|
||||
ignoreAcceptHeader(true).
|
||||
useJaf(false).
|
||||
defaultContentType(MediaType.TEXT_HTML).
|
||||
defaultContentType(MediaType.APPLICATION_JSON).
|
||||
mediaType("xml", MediaType.APPLICATION_XML).
|
||||
mediaType("html", MediaType.TEXT_HTML).
|
||||
mediaType("json", MediaType.APPLICATION_JSON);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue