|  | @ -9,27 +9,12 @@ | 
			
		
	
		
		
			
				
					|  |  | package com.epmet.config; |  |  | package com.epmet.config; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.resolver.LoginUserHandlerMethodArgumentResolver; |  |  | import com.epmet.resolver.LoginUserHandlerMethodArgumentResolver; | 
			
		
	
		
		
			
				
					|  |  | 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.epmet.commons.tools.security.resolver.UserDetailHandlerMethodArgumentResolver; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.utils.DateUtils; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.beans.factory.annotation.Autowired; |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.context.annotation.Bean; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.context.annotation.Configuration; |  |  | import org.springframework.context.annotation.Configuration; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.ByteArrayHttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.HttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.ResourceHttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.StringHttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.web.method.support.HandlerMethodArgumentResolver; |  |  | import org.springframework.web.method.support.HandlerMethodArgumentResolver; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |  |  | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | import java.text.SimpleDateFormat; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import java.util.List; |  |  | import java.util.List; | 
			
		
	
		
		
			
				
					|  |  | import java.util.TimeZone; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | /** |  |  | /** | 
			
		
	
		
		
			
				
					|  |  |  * MVC配置 |  |  |  * MVC配置 | 
			
		
	
	
		
		
			
				
					|  | @ -39,11 +24,11 @@ import java.util.TimeZone; | 
			
		
	
		
		
			
				
					|  |  |  */ |  |  |  */ | 
			
		
	
		
		
			
				
					|  |  | @Configuration |  |  | @Configuration | 
			
		
	
		
		
			
				
					|  |  | public class WebConfig implements WebMvcConfigurer { |  |  | public class WebConfig implements WebMvcConfigurer { | 
			
		
	
		
		
			
				
					
					|  |  | //    @Autowired
 |  |  |     @Autowired | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | //    private LoginUserHandlerMethodArgumentResolver loginUserHandlerMethodArgumentResolver;
 |  |  |     private LoginUserHandlerMethodArgumentResolver loginUserHandlerMethodArgumentResolver; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { |  |  |     public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) { | 
			
		
	
		
		
			
				
					
					|  |  |         argumentResolvers.add(new LoginUserHandlerMethodArgumentResolver()); |  |  |         argumentResolvers.add(loginUserHandlerMethodArgumentResolver); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | } |  |  | } | 
			
		
	
	
		
		
			
				
					|  | 
 |