做亞馬遜網(wǎng)站費用嗎必應(yīng)收錄提交入口
? ? ? ? Form-data傳輸file參數(shù),這個大家都比較清楚,那么針對于Fegin參數(shù)file參數(shù)該如何操作呢!下面截圖來找到對應(yīng)的參數(shù)關(guān)系。
一、之前我們在postMan中是這種傳參的,那么如果使用Feigin來傳輸文件File
二、在Fegin中傳form-data參數(shù):
@FeignClient(url = "http://aaa.com", name = "testApi")
public interface TestApi {@PostMapping(value = "/api/test", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)JSONObject openApiPic(@RequestPart String type,@RequestPart String content,@RequestPart MultipartFile file);}