|  |  | 
 |  |  | package com.genersoft.iot.vmp.conf; | 
 |  |  |  | 
 |  |  | import com.alibaba.fastjson.JSON; | 
 |  |  | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; | 
 |  |  | import com.alibaba.fastjson2.JSON; | 
 |  |  | import com.alibaba.fastjson2.support.spring.http.converter.FastJsonHttpMessageConverter; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.WVPResult; | 
 |  |  | import org.jetbrains.annotations.NotNull; | 
 |  |  | 
 |  |  | import org.springframework.core.MethodParameter; | 
 |  |  | import org.springframework.http.MediaType; | 
 |  |  | import org.springframework.http.converter.HttpMessageConverter; | 
 |  |  | import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; | 
 |  |  | import org.springframework.http.server.ServerHttpRequest; | 
 |  |  | import org.springframework.http.server.ServerHttpResponse; | 
 |  |  | import org.springframework.web.bind.annotation.RestControllerAdvice; | 
 |  |  | import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 全局统一返回结果 | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @Bean | 
 |  |  |     public HttpMessageConverters custHttpMessageConverter() { | 
 |  |  |     public HttpMessageConverters fast() { | 
 |  |  |         return new HttpMessageConverters(new FastJsonHttpMessageConverter()); | 
 |  |  |     } | 
 |  |  | } |