VTracyHuang opened a new issue #2083:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2083
@PostMapping(path = "/documentation/upload", produces =
MediaType.TEXT_PLAIN_VALUE, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public Boolean uploadFile(@RequestBody UploadFileRequest request,
@RequestPart("file") MultipartFile multipartFile){
logger.info("请求参数"+request.toString());
return false;
}
请问上传文件的时候,除了文件参数 我可能还需要传递五六个参数 ,我就把他写成了个对象,这样需要怎么传呢?
文档里 @RequestAttribute可用,只能传一个简单类型。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]