OpenFeign/feign

Can't set Content-type for Request Header when use Spring annotations

開放

#1,239 建立於 2020年6月10日

 (9 則留言) (5 個反應) (0 位負責人)Java (1,911 個分叉)batch import
bughelp wantedneeds info

倉庫指標

星標
 (9,070 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

I'm using Feign and Spring annotations, I have a request that expects to accept "text/plain".

@PostMapping(value = "/demo", consumes = "application/json", produces="text/plain")
public String demo(@RequestBody List<Long> ids);

But, the produces value not working. The request still has a header: Accept=application/json

貢獻者指南