这是我使用 SpringMVC 的 Controller ,它有 2 个参数是“file”和“fileDesc”:
@RequestMapping(value = "/uploadfiles", method = RequestMethod.POST)
@ResponseBody
public String createResource(@RequestParam("file") MultipartFile[] files, @RequestParam("fileDesc") String fileDesc, Locale locale)
throws IOException, ServiceProcessException {...}
这是我在 Mule 中的设计:
我不知道如何让文件在 Controller 中获取值,因为我发送到 Mule 的数据然后在运行时指向 Controller 。
最佳答案
已经讨论了类似的用例here .
HTH。
关于java - 如何在Mule ESB消息流中添加要上传的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31961386/