如何在Spring Rest Controller中知道文件上传的持续时间

时间:2019-01-14 09:01:46

标签: java spring rest spring-boot kotlin

我需要能够知道@RestController中@PostMapping方法中文件上传的持续时间。

到目前为止,我还没有运气。

我考虑过使用HttpServerletRequest.getDateHeader(),但这显然不是服务器时间,也不值得信赖。

fun receiveFile(@RequestParam("file") file: MultipartFile, request: HttpServletRequest){
    ...
}

0 个答案:

没有答案