xiangpei
2024-07-26 a106ddc2b1b25c8891cb0a15a775bd39b5bda2ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.ycl.config;
 
import com.ycl.interceptor.YYFeignInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
 
public class YYFeignConfig {
    /**
     * 注入拦截器
     */
    @Bean
    public RequestInterceptor requestInterceptor(){
        return new YYFeignInterceptor();
    }
}