No serializer found for class java.io.FileDescriptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.cloud.module.smartkey.dto.UploadParam["uploadFile"]->org.springframework.web.multipart.support.StandardMultipartHttpServletRequest$StandardMultipartFile["inputStream"]->java.io.FileInputStream["fd"])
@PostMapping(value = "/ObjectOper/upload/v2") FileReturn upload(UploadParam param);
更改成
@PostMapping(value = "/ObjectOper/upload/v2", consumes = {"multipart/form-data"}) FileReturn upload(UploadParam param);
标签:UploadParam,调用,form,upload,multipart,io,data From: https://www.cnblogs.com/deepalley/p/18163883