SpringCloud Feign 要取到 header

SpringCloud Feign 要取到 header,只能使用 feign.Response 接才能得到 header 里面的值

Optional authorization = response.headers().get("Authorization").stream().findFirst();

你可能感兴趣的:(SpringCloud Feign 要取到 header)