如何以开放式下载文件 [英] How to download File with open-feign
本文介绍了如何以开放式下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 open-feign 下载File
,这可能吗?
例如:
How to download File
with open-feign, it's possible?
for example:
@RequestLine("GET /file")
File from (@Param("param") String param);
推荐答案
您正在使用Spring吗?
Are you using Spring?
您可以使用以下代码:
@RequestMapping(
value = "/multipart/download/{fileId}",
method = GET)
MultipartFile[] download(@PathVariable("fileId") String fileId);
在官方Github 中查看该教程.
这篇关于如何以开放式下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文