1.增加文件FeignConfig,注入Bean,修改默认Feign默认的解析方式 2.由于fastjson1.2.28后,增加了对Content-type验证,故添加多种MediaType @Configuration public class FeignConfig { @Bean public ResponseEntityDecoder feignDecoder() { HttpMessageConverter fastJsonConverter = createFastJsonConverter(); ObjectFactory<Http...
修改Feign数据解析,由jackson改为fastjson,同时解决fastjson中Content-Type问题 2019-10-30 11:30 −... 沧海一滴 0 3342 fastjson 2019-09-27 16:48 −Pom文件依赖 <properties> <fastjson.version>1.2.47</fastjson.version></properties> <dependency> <groupId>com.alibaba&l... ...
1.增加文件FeignConfig,注入Bean,修改默认Feign默认的解析方式 2.由于fastjson1.2.28后,增加了对Content-type验证,故添加多种MediaType @ConfigurationpublicclassFeignConfig { @BeanpublicResponseEntityDecoder feignDecoder() { HttpMessageConverter fastJsonConverter=createFastJsonConverter(); ObjectFactory<HttpMessageConver...
1.增加文件FeignConfig,注入Bean,修改默认Feign默认的解析方式 2.由于fastjson1.2.28后,增加了对Content-type验证,故添加多种MediaType @Configuration public class FeignConfig { @Bean public ResponseEntityDecoder feignDecoder() { HttpMessageConverter fastJsonConverter = createFastJsonConverter(); ObjectFactory<Http...