OpenFeign/feign
Can't set Content-type for Request Header when use Spring annotations
开放
#1,239 创建于 2020年6月10日
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