填坑之路:Springboot+swagger整合poi導出excel文件損壞

環境: Springboot: 2.1.3 poi:3.1.5 swagger:2.7.0 問題:導出excel後出現文件損壞,打開後內容亂碼 解決: 1.在 Swagger 註解 @ApiOperation(value = 「測試」, notes = 「參數: 無」, produces = 「application/octet-stream」) 添加 produces = 「applicatio
相關文章
相關標籤/搜索