|
|
@ -29,18 +29,14 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
* @author Haotian Zhang
|
|
|
|
* @author Haotian Zhang
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnProperty(name = "com.tencent.cloud.feign.enabled", matchIfMissing = true)
|
|
|
|
|
|
|
|
@ConditionalOnClass(Feign.class)
|
|
|
|
public class PluggableFeignAutoConfiguration {
|
|
|
|
public class PluggableFeignAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnProperty(name = "com.tencent.cloud.feign.enabled", matchIfMissing = true)
|
|
|
|
|
|
|
|
static class PluggableFeignConfig {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean
|
|
|
|
@ConditionalOnMissingBean
|
|
|
|
public Feign.Builder pluggableFeignBuilder() {
|
|
|
|
public Feign.Builder pluggableFeignBuilder() {
|
|
|
|
return PluggableFeign.builder();
|
|
|
|
return PluggableFeign.builder();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|