Hello World

Swagger : API JSON 文件 转 PDF 问题总结

1.  swagger API 转 PDF

  具体请参考:woshihoujinxin/swagger-gendoc

2. 问题总结

  接口方法值返回值为  void 类型时, @ApiOperation 的 produces 属性不可填写,@RequestMapping 的 produces 属性也不可填写;

  接口参数中有 MultipartFile 类型参数时, @ApiOperation 的 consumer 属性不可填写 ,@RequestMapping 的 consumer 属性也不可填写

  否则转PDF时插件会报错。

posted @ 2019-08-16 13:38  小小忧愁米粒大  阅读(1737)  评论(0编辑  收藏  举报
瞅啥瞅,好好看书