题目描述在SpringMVC中为什么前台传入一个参数,controller却接受两个参数?一直搞不懂这一点,希望大家可以帮助我.后台:@PostMapping("/uploadFace")
public JSONResult uploadFace(String userId, @RequestParam("file") MultipartFile[] files) throws IOException {前台: wx.uploadFile({ url: serverUrl + '/user/uploadFace?userId=' + app.userInfo.id,
filePath: tempFilePaths[0],
name: 'file',
header: { 'content-type': 'application/json'
}
添加回答
举报
0/150
提交
取消
