Spring の残りのコントローラー用に作成された偽のクライアントに問題があります。このメソッドでは、HttpServletResponse に csv 文字列を記述しますが、偽の実装をテストしたい場合、コンソール エラーが表示されます。
feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found for response type [class java.lang.Void] and content type [text/csv;charset=UTF-8]
偽の実装は次のとおりです。
@GET
@Path("/{id}/report/download")
@Produces('text/csv')
@ApiOperation("Generate a report in csv format")
ResponseEntity<Void> downloadCsv(@PathParam("id") String id)
誰でもこの問題で私を助けてくれますか?