|
@ -22,6 +22,7 @@ import javax.sql.DataSource; |
|
|
import java.nio.charset.Charset; |
|
|
import java.nio.charset.Charset; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.TimeZone; |
|
|
|
|
|
|
|
|
@Configuration |
|
|
@Configuration |
|
|
//public class SpringConfig extends WebMvcConfigurationSupport {
|
|
|
//public class SpringConfig extends WebMvcConfigurationSupport {
|
|
@ -59,6 +60,7 @@ public class SpringConfig implements WebMvcConfigurer { |
|
|
simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); |
|
|
simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); |
|
|
objectMapper.registerModule(simpleModule); |
|
|
objectMapper.registerModule(simpleModule); |
|
|
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
|
|
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
|
|
|
|
|
objectMapper.setTimeZone(TimeZone.getTimeZone("GMT+8")); |
|
|
converter.setObjectMapper(objectMapper); |
|
|
converter.setObjectMapper(objectMapper); |
|
|
|
|
|
|
|
|
return converter; |
|
|
return converter; |
|
|