<!-- https://mvnrepository.com/artifact/com.netflix.feign/feign-okhttp -->
<dependency>
<groupId>com.netflix.feign</groupId>
<artifactId>feign-okhttp</artifactId>
<version>8.18.0</version>
</dependency>
package com.test.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
@FeignClient(url="http://8.8.8.8:8888/v2",name = "abc")
@Service
public interface FaceFeign {
@RequestMapping(value = "/quality",method = RequestMethod.POST,headers = {"Accept=application/json","Content-Type=application/x-www-form-urlencoded"})
public Object attribute(@RequestParam("file") MultipartFile file,
@RequestParam("data")String data,
@RequestParam("rotate")boolean rotate);
}