龚焕茏
2024-07-26 b20931da45368031ec19e37816b6879bdcba528e
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();
    }
}