blob: 365e1af9ad442c5cbb04826d911f0cbeb86af813 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.stileeducation.markr.config;
import com.stileeducation.markr.converter.XmlMarkrMessageConverter;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.util.List;
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void extendMessageConverters(List<HttpMessageConverter<?>> converters) {
// Register custom message converter to support text/xml+mark content type
converters.add(new XmlMarkrMessageConverter());
}
}
|