|
|
@ -29,11 +29,9 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
* @author Haotian Zhang
|
|
|
|
* @author Haotian Zhang
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
public class PluggableFeignAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnProperty(name = "com.tencent.cloud.feign.enabled", matchIfMissing = true)
|
|
|
|
@ConditionalOnProperty(name = "com.tencent.cloud.feign.enabled", matchIfMissing = true)
|
|
|
|
static class PluggableFeignConfig {
|
|
|
|
@ConditionalOnClass(Feign.class)
|
|
|
|
|
|
|
|
public class PluggableFeignAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean
|
|
|
|
@ConditionalOnMissingBean
|
|
|
@ -42,5 +40,3 @@ public class PluggableFeignAutoConfiguration {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|