minor formatting work
This commit is contained in:
parent
06adf29a93
commit
8bd5e12207
@ -23,14 +23,8 @@ public class ContentManagementWebConfig extends WebMvcConfigurerAdapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
|
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
|
||||||
configurer.favorPathExtension(false).
|
configurer.favorPathExtension(false).favorParameter(true).parameterName("mediaType").ignoreAcceptHeader(true).useJaf(false).defaultContentType(MediaType.APPLICATION_JSON).mediaType("xml", MediaType.APPLICATION_XML).mediaType("json",
|
||||||
favorParameter(true).
|
MediaType.APPLICATION_JSON);
|
||||||
parameterName("mediaType").
|
|
||||||
ignoreAcceptHeader(true).
|
|
||||||
useJaf(false).
|
|
||||||
defaultContentType(MediaType.APPLICATION_JSON).
|
|
||||||
mediaType("xml", MediaType.APPLICATION_XML).
|
|
||||||
mediaType("json", MediaType.APPLICATION_JSON);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user