如何使用spring rest模板从springboot到jersey发布multipartfile?

时间:2018-10-25 06:39:46

标签: spring-boot jersey spring-jersey

如何使用spring rest模板将MultipartFile张贴到将输入作为MesssageContext的Jersey端点?是否需要以Jersey的MessageContext可接受的格式转换MultipartFile?

这是我需要击中的Jersey终点。

@Path("/api/{projectid}/issues/{issueid}/attachments")
public IssueAttachmentDTO uploadIssueAttachment(@PathParam(PATH_PARAM_PROJECT_ID) Long projectId, @PathParam(PATH_PARAM_ISSUE_ID) String issueId,
                                                @Context MessageContext messageContext) throws IOException {}

P.S。我在Jersey REST API之上创建一个Springboot层。我对泽西岛不了解。

0 个答案:

没有答案
相关问题