微服务间调用,请求头token 转移
/**
* configuration 设置服务调用请求头,拦截器方式 继承 RequestInterceptor
*/
@FeignClient(name = "itdw_sso",configuration = FeignRequestInterceptor.class)
public interface ItdwSSOFeign {
}
public class FeignRequestInterceptor implements RequestInterceptor {
@Overr.
原创
2021-08-26 09:13:36 ·
303 阅读 ·
0 评论