我在Spring中为休息控制器创建了一个feign客户端的问题,在这个方法中我在HttpServletResponse上写了一个csv字符串,但是当我想测试feign实现时显示控制台错误。
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)
有人可以帮我解决这个问题吗?