xiangpei
2024-07-31 1c8cec3f1f0a36ac709d972b65c7d30e44ebe26a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.ycl.interceptor;
 
import feign.RequestInterceptor;
import feign.RequestTemplate;
 
/**
 * 优云请求拦截器
 */
public class YYFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        System.out.println("wodefa");
        requestTemplate.header("token", "auth");
    }
}