| Line 13... |
Line 13... |
| 13 |
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
13 |
import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
| 14 |
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
14 |
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
| 15 |
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
15 |
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
| 16 |
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
16 |
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
| 17 |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
17 |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
| - |
|
18 |
|
| - |
|
19 |
import com.fasterxml.jackson.databind.DeserializationFeature;
|
| 18 |
import com.fasterxml.jackson.databind.ObjectMapper;
|
20 |
import com.fasterxml.jackson.databind.ObjectMapper;
|
| 19 |
import com.fasterxml.jackson.databind.SerializationFeature;
|
21 |
import com.fasterxml.jackson.databind.SerializationFeature;
|
| 20 |
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
22 |
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
| 21 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
23 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 22 |
import com.spice.profitmandi.common.web.interceptor.SimpleCORSInterceptor;
|
24 |
import com.spice.profitmandi.common.web.interceptor.SimpleCORSInterceptor;
|
| 23 |
import com.spice.profitmandi.web.interceptor.AuthenticationInterceptor;
|
25 |
import com.spice.profitmandi.web.interceptor.AuthenticationInterceptor;
|
| - |
|
26 |
|
| 24 |
import springfox.documentation.builders.PathSelectors;
|
27 |
import springfox.documentation.builders.PathSelectors;
|
| 25 |
import springfox.documentation.builders.RequestHandlerSelectors;
|
28 |
import springfox.documentation.builders.RequestHandlerSelectors;
|
| 26 |
import springfox.documentation.service.ApiInfo;
|
29 |
import springfox.documentation.service.ApiInfo;
|
| 27 |
import springfox.documentation.spi.DocumentationType;
|
30 |
import springfox.documentation.spi.DocumentationType;
|
| 28 |
import springfox.documentation.spring.web.plugins.Docket;
|
31 |
import springfox.documentation.spring.web.plugins.Docket;
|
| Line 99... |
Line 102... |
| 99 |
super.configureMessageConverters(converters);
|
102 |
super.configureMessageConverters(converters);
|
| 100 |
}
|
103 |
}
|
| 101 |
@Bean
|
104 |
@Bean
|
| 102 |
public ObjectMapper objectMapper() {
|
105 |
public ObjectMapper objectMapper() {
|
| 103 |
ObjectMapper objectMapper = new ObjectMapper();
|
106 |
ObjectMapper objectMapper = new ObjectMapper();
|
| - |
|
107 |
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
| 104 |
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
|
108 |
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
|
| 105 |
JavaTimeModule javaTimeModule = new JavaTimeModule();
|
109 |
JavaTimeModule javaTimeModule = new JavaTimeModule();
|
| 106 |
objectMapper.registerModule(javaTimeModule);
|
110 |
objectMapper.registerModule(javaTimeModule);
|
| 107 |
return objectMapper;
|
111 |
return objectMapper;
|
| 108 |
}
|
112 |
}
|