|  | @@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.databind.ObjectMapper;
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.databind.module.SimpleModule;
 | 
	
		
			
				|  |  |  import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
 | 
	
		
			
				|  |  | +import com.xunmei.common.core.json.LongListSerializer;
 | 
	
		
			
				|  |  |  import com.xunmei.common.security.interceptor.HeaderInterceptor;
 | 
	
		
			
				|  |  |  import org.springframework.beans.BeansException;
 | 
	
		
			
				|  |  |  import org.springframework.context.ApplicationContext;
 | 
	
	
		
			
				|  | @@ -13,6 +14,8 @@ import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
 | 
	
		
			
				|  |  |  import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.math.BigInteger;
 | 
	
		
			
				|  |  | +import java.util.Collection;
 | 
	
		
			
				|  |  | +import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 拦截器配置
 | 
	
	
		
			
				|  | @@ -42,15 +45,16 @@ public class WebMvcConfig implements WebMvcConfigurer, ApplicationContextAware {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
 | 
	
		
			
				|  |  | -//        final AbstractJackson2HttpMessageConverter httpMessageConverter = applicationContext.getBean(AbstractJackson2HttpMessageConverter.class);
 | 
	
		
			
				|  |  | -//        final ObjectMapper objectMapper = httpMessageConverter.getObjectMapper();
 | 
	
		
			
				|  |  | -//        SimpleModule simpleModule = new SimpleModule();
 | 
	
		
			
				|  |  | -//        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | -//        simpleModule.addSerializer(BigInteger.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | -//        simpleModule.addSerializer(long.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | -//        objectMapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);
 | 
	
		
			
				|  |  | -//        objectMapper.registerModule(simpleModule);
 | 
	
		
			
				|  |  | -//        httpMessageConverter.setObjectMapper(objectMapper);
 | 
	
		
			
				|  |  | -//        objectMapper.registerModule(new com.fasterxml.jackson.dataty())
 | 
	
		
			
				|  |  | +        final AbstractJackson2HttpMessageConverter httpMessageConverter = applicationContext.getBean(AbstractJackson2HttpMessageConverter.class);
 | 
	
		
			
				|  |  | +        final ObjectMapper objectMapper = httpMessageConverter.getObjectMapper();
 | 
	
		
			
				|  |  | +        SimpleModule simpleModule = new SimpleModule();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | +        simpleModule.addSerializer(BigInteger.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | +        simpleModule.addSerializer(long.class, ToStringSerializer.instance);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        objectMapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);
 | 
	
		
			
				|  |  | +        objectMapper.registerModule(simpleModule);
 | 
	
		
			
				|  |  | +        httpMessageConverter.setObjectMapper(objectMapper);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |