单文件传输:
@RequestMapping(value = "/", method = RequestMethod.POST)
public Object FTP(HttpServletRequest request,
@RequestParam(value = "file", required = false) MultipartFile files) {
}
多文件传输:
@RequestMapping(value = "/", method = RequestMethod.POST)
public Object uploadFile(HttpServletRequest request,
@RequestParam(value = "File", required = false) List<MultipartFile> files) {
}
以及通过使用BufferInputStream和BufferOutputSteam来读取文件信息等。