package com.quanwei.wlanscope_wechat_information_treasure.config;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @date 2019-8-21
*
* <p>微服务之间通过Feign进行文件互传的配置类</p>
* <p>添加feign的扩展包,并自定义编码</p>
*
* <p>添加依赖
* <!--开启feign(集成了ribbon和hystrix)-->
* <dependency>
* <groupId>org.springframework.cloud</groupId>
* <artifactId>spring-cloud-starter-openfeign</artifactId>
* </dependency>
* <!--feign底层替换httpClient-->
* <dependency>
* <groupId>io.github.openfeign</groupId>
* <artifactId>feign-httpclient</artifactId>
* </dependency>
* <!--feign扩展包版本太高 已经出现问题,此处使用3.0.3版本的--><