标签: java spring rest spring-boot kotlin
我需要能够知道@RestController中@PostMapping方法中文件上传的持续时间。
到目前为止,我还没有运气。
我考虑过使用HttpServerletRequest.getDateHeader(),但这显然不是服务器时间,也不值得信赖。
fun receiveFile(@RequestParam("file") file: MultipartFile, request: HttpServletRequest){ ... }