| Line 7... |
Line 7... |
| 7 |
import org.springframework.beans.factory.annotation.Autowired;
|
7 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 8 |
import org.springframework.context.annotation.Bean;
|
8 |
import org.springframework.context.annotation.Bean;
|
| 9 |
import org.springframework.context.annotation.ComponentScan;
|
9 |
import org.springframework.context.annotation.ComponentScan;
|
| 10 |
import org.springframework.context.annotation.Configuration;
|
10 |
import org.springframework.context.annotation.Configuration;
|
| 11 |
import org.springframework.http.MediaType;
|
11 |
import org.springframework.http.MediaType;
|
| - |
|
12 |
import org.springframework.http.converter.ByteArrayHttpMessageConverter;
|
| 12 |
import org.springframework.http.converter.HttpMessageConverter;
|
13 |
import org.springframework.http.converter.HttpMessageConverter;
|
| - |
|
14 |
import org.springframework.http.converter.ResourceHttpMessageConverter;
|
| 13 |
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
15 |
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
| 14 |
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
|
16 |
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
|
| 15 |
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
17 |
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
| 16 |
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
18 |
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
| 17 |
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
19 |
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
| Line 96... |
Line 98... |
| 96 |
|
98 |
|
| 97 |
@Override
|
99 |
@Override
|
| 98 |
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
|
100 |
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
|
| 99 |
|
101 |
|
| 100 |
converters.add(new MappingJackson2HttpMessageConverter(objectMapper()));
|
102 |
converters.add(new MappingJackson2HttpMessageConverter(objectMapper()));
|
| - |
|
103 |
converters.add(new ResourceHttpMessageConverter());
|
| - |
|
104 |
converters.add(new ByteArrayHttpMessageConverter());
|
| - |
|
105 |
//converters.add(new Converter)
|
| 101 |
super.configureMessageConverters(converters);
|
106 |
super.configureMessageConverters(converters);
|
| 102 |
}
|
107 |
}
|
| 103 |
|
108 |
|
| 104 |
@Bean
|
109 |
@Bean
|
| 105 |
public ObjectMapper objectMapper() {
|
110 |
public ObjectMapper objectMapper() {
|