From 2b80ef919219b67fc59bd37f2ca01f72721347fc Mon Sep 17 00:00:00 2001 From: Mercy Ma Date: Thu, 16 Jan 2025 18:42:57 +0800 Subject: [PATCH] Refactor --- .../ServiceRegistryAutoConfigurationTest.java | 14 ++++++++++++++ .../autoconfigure/EnableFeignAutoRefresh.java | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 microsphere-spring-cloud-commons/src/test/java/io/microsphere/spring/cloud/client/service/registry/autoconfigure/ServiceRegistryAutoConfigurationTest.java diff --git a/microsphere-spring-cloud-commons/src/test/java/io/microsphere/spring/cloud/client/service/registry/autoconfigure/ServiceRegistryAutoConfigurationTest.java b/microsphere-spring-cloud-commons/src/test/java/io/microsphere/spring/cloud/client/service/registry/autoconfigure/ServiceRegistryAutoConfigurationTest.java new file mode 100644 index 0000000..5b09845 --- /dev/null +++ b/microsphere-spring-cloud-commons/src/test/java/io/microsphere/spring/cloud/client/service/registry/autoconfigure/ServiceRegistryAutoConfigurationTest.java @@ -0,0 +1,14 @@ +package io.microsphere.spring.cloud.client.service.registry.autoconfigure; + +import static org.junit.jupiter.api.Assertions.*; + +/** + * {@link ServiceRegistryAutoConfiguration} Test + * + * @author Mercy + * @see ServiceRegistryAutoConfiguration + * @since 1.0.0 + */ +public class ServiceRegistryAutoConfigurationTest { + +} \ No newline at end of file diff --git a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/EnableFeignAutoRefresh.java b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/EnableFeignAutoRefresh.java index 1587b12..7433fb0 100644 --- a/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/EnableFeignAutoRefresh.java +++ b/microsphere-spring-cloud-openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/autoconfigure/EnableFeignAutoRefresh.java @@ -19,7 +19,7 @@ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) @Documented -@Import(FeignClientAutoRefreshAutoConfiguration.class) +@Import(EnableFeignAutoRefresh.Marker.class) public @interface EnableFeignAutoRefresh { class Marker {