记录一下今天遇到的一个问题
就是因为没有打@PathVariable(“files”),然后一直获取不到表单数据,这个files是上传表单的name不能打错,否则获取不到表单数据
@RequestMapping("uploadCard")
public String uploadCard(@PathVariable("files") MultipartFile[] files, Integer id, HttpServletRequest request) {
}
记录一下今天遇到的一个问题
就是因为没有打@PathVariable(“files”),然后一直获取不到表单数据,这个files是上传表单的name不能打错,否则获取不到表单数据
@RequestMapping("uploadCard")
public String uploadCard(@PathVariable("files") MultipartFile[] files, Integer id, HttpServletRequest request) {
}