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();
| }
| }
|
|