最近使用 SpringBoot 项目,把一些 http 请求转为 使用 feign方式。请问怎么在个别请求设置header的。
目前的方式是实现RequestInterceptor,但是这个是在所有的feign都加header
对啦,hystrix已采用线程隔离(也就是说没法通过threadlocal来赋值啦)
feign.hystrix.enabled=true
求解????
最近使用 SpringBoot 项目,把一些 http 请求转为 使用 feign方式。请问怎么在个别请求设置header的。
目前的方式是实现RequestInterceptor,但是这个是在所有的feign都加header
对啦,hystrix已采用线程隔离(也就是说没法通过threadlocal来赋值啦)
feign.hystrix.enabled=true
求解????