topic description
Why does the foreground pass in one parameter in SpringMVC, but controller accepts two parameters?
doesn"t understand this all the time. I hope you can help me.
background:
@PostMapping("/uploadFace")
public JSONResult uploadFace(String userId, @RequestParam("file") MultipartFile[] files) throws IOException {
Front desk:
wx.uploadFile({
url: serverUrl + "/user/uploadFace?userId=" + app.userInfo.id,
filePath: tempFilePaths[0],
name: "file",
header: {
"content-type": "application/json"
}