xiangpei
2024-07-29 a87335ba0f5542aef29c0d5236921d3ce9831479
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();
    }
}