21 lines
422 B
Plaintext
21 lines
422 B
Plaintext
|
|
package com.securityControl.common.security.feign;
|
||
|
|
|
||
|
|
import org.springframework.context.annotation.Bean;
|
||
|
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
import feign.RequestInterceptor;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Feign 配置注册
|
||
|
|
*
|
||
|
|
* @author czc
|
||
|
|
**/
|
||
|
|
@Configuration
|
||
|
|
public class FeignAutoConfiguration
|
||
|
|
{
|
||
|
|
@Bean
|
||
|
|
public RequestInterceptor requestInterceptor()
|
||
|
|
{
|
||
|
|
return new FeignRequestInterceptor();
|
||
|
|
}
|
||
|
|
}
|