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