SpringFox 3.0.0(Swagger 3.0.0)——【文件上传,接收file类型时显示string】解决方案
官方文档https://springdoc.org/官方DEMOhttps://github.com/springdoc/springdoc-openapi-demos问题描述解决方案@RequestMapping(value = "/t",method = {RequestMethod.POST},headers = "content-type=multipart/form-data")publ
·
官方文档
官方DEMO
https://github.com/springdoc/springdoc-openapi-demos
问题描述
解决方案
@RequestMapping(value = "/t",method = {RequestMethod.POST},headers = "content-type=multipart/form-data")
public ResponseBean ocr(@ApiParam(value="文件",required=true)@RequestPart("file") MultipartFile file){
return ResponseBean.error();
}
参考文章
更多推荐
已为社区贡献15条内容
所有评论(0)