2021-04-08 19:45:09 +00:00
|
|
|
package com.gmgauthier.soapmock.config;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
|
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
public class ApiConfig implements WebMvcConfigurer {
|
|
|
|
@Override
|
|
|
|
public void configureContentNegotiation(final ContentNegotiationConfigurer configurer) {
|
2021-04-09 19:19:24 +00:00
|
|
|
configurer.defaultContentType(MediaType.valueOf(MediaType.TEXT_XML_VALUE));
|
2021-04-08 19:45:09 +00:00
|
|
|
}
|
|
|
|
}
|