.tmp files not being deleted in Multipart Spring MVC File Upload
问题 I've implemented a Spring MVC REST service that accepts a multipart message with both a file upload and a JSON body as the constitutive parts. Here are the main classes involved: My Controller: @RestController public class MyController { @Autowired private MyService myService; @RequestMapping(value = "/publish", method = RequestMethod.POST, consumes = "multipart/form-data", produces = "application/json") public PublishContentResponse publishContent(@RequestPart("json") PublishContentRequest