From cbace64ca733dc43717ab83039362b28c0136a64 Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Thu, 16 Jan 2025 21:31:31 +0800 Subject: [PATCH] Reimport --- .../FeignClientAutoRefreshAutoConfiguration.java | 5 ----- .../autorefresh/AutoRefreshCapability.java | 14 ++++++++++++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/FeignClientAutoRefreshAutoConfiguration.java b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/FeignClientAutoRefreshAutoConfiguration.java index b1a5182..bc01cd1 100644 --- a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/FeignClientAutoRefreshAutoConfiguration.java +++ b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/FeignClientAutoRefreshAutoConfiguration.java @@ -5,18 +5,14 @@ import io.microsphere.spring.cloud.openfeign.autorefresh.FeignComponentRegistry; import io.microsphere.spring.cloud.openfeign.components.NoOpRequestInterceptor; import org.springframework.beans.factory.BeanFactory; -import org.springframework.boot.autoconfigure.AutoConfigureAfter; -import org.springframework.boot.autoconfigure.AutoConfigureBefore; import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; import org.springframework.boot.context.event.ApplicationReadyEvent; -import org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration; import org.springframework.cloud.context.named.NamedContextFactory; import org.springframework.cloud.openfeign.FeignBuilderCustomizer; import org.springframework.cloud.openfeign.FeignClientProperties; import org.springframework.cloud.openfeign.FeignClientSpecification; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.Bean; -import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; /** @@ -28,7 +24,6 @@ * @since 0.0.1 */ @ConditionalOnBean(EnableFeignAutoRefresh.Marker.class) -//@AutoConfigureAfter(ConfigurationPropertiesRebinderAutoConfiguration.class) public class FeignClientAutoRefreshAutoConfiguration { @Bean diff --git a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autorefresh/AutoRefreshCapability.java b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autorefresh/AutoRefreshCapability.java index ae865ff..884c00a 100644 --- a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autorefresh/AutoRefreshCapability.java +++ b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autorefresh/AutoRefreshCapability.java @@ -1,11 +1,21 @@ package io.microsphere.spring.cloud.openfeign.autorefresh; -import feign.*; +import feign.Capability; +import feign.Contract; +import feign.QueryMapEncoder; +import feign.RequestInterceptor; +import feign.Retryer; import feign.codec.Decoder; import feign.codec.Encoder; import feign.codec.ErrorDecoder; import io.microsphere.spring.cloud.openfeign.FeignComponentProvider; -import io.microsphere.spring.cloud.openfeign.components.*; +import io.microsphere.spring.cloud.openfeign.components.DecoratedContract; +import io.microsphere.spring.cloud.openfeign.components.DecoratedDecoder; +import io.microsphere.spring.cloud.openfeign.components.DecoratedEncoder; +import io.microsphere.spring.cloud.openfeign.components.DecoratedErrorDecoder; +import io.microsphere.spring.cloud.openfeign.components.DecoratedFeignComponent; +import io.microsphere.spring.cloud.openfeign.components.DecoratedQueryMapEncoder; +import io.microsphere.spring.cloud.openfeign.components.DecoratedRetryer; import org.springframework.beans.BeansException; import org.springframework.cloud.openfeign.FeignClientProperties; import org.springframework.context.ApplicationContext;