maven:
```xml
spring-cloud-starter-openfeign
spring-cloud-dependencies
```
配置类:
```java
@Configuration
public class FeignClientFormPostConfig {
@Bean
@Primary
@Scope("prototype")
public Encoder multipartFormEncoder() {
return new SpringFormEncoder();
}
}
```
启动类:
```java
扫描到所在的service层
@EnableFeignClients(basePackages = "com.chinapopin.apply.trace.push.service")
```
接口:
```java
@FeignClient(name = "FeignTracePatientPushLogService",url = "https://wsyjgl.scwjxx.cn/yqxxtest/meta/CommonData/public/gong_an_mj",configuration = FeignClientFormPostConfig.class)
public interface FeignTracePatientPushLogService {
@RequestMapping(method = RequestMethod.POST,consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
JSonObject tracePatientPush(TracePatientPushLogDto tracePatientPushLogDto);
}
```



