From 67b276af4469e74629b8d113823f0de8a6712db7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= <2270033969@qq.com> Date: Mon, 22 Apr 2024 09:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20EnablePigxFeignClients=20@?= =?UTF-8?q?AliasFor=20=E6=B3=A8=E8=A7=A3=E9=81=BF=E5=85=8Dconsole=20?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pigx/common/feign/annotation/EnablePigxFeignClients.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pigx-common/pigx-common-feign/src/main/java/com/pig4cloud/pigx/common/feign/annotation/EnablePigxFeignClients.java b/pigx-common/pigx-common-feign/src/main/java/com/pig4cloud/pigx/common/feign/annotation/EnablePigxFeignClients.java index 21b4cc634..340caff53 100644 --- a/pigx-common/pigx-common-feign/src/main/java/com/pig4cloud/pigx/common/feign/annotation/EnablePigxFeignClients.java +++ b/pigx-common/pigx-common-feign/src/main/java/com/pig4cloud/pigx/common/feign/annotation/EnablePigxFeignClients.java @@ -19,6 +19,7 @@ package com.pig4cloud.pigx.common.feign.annotation; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.FeignClientsConfiguration; +import org.springframework.core.annotation.AliasFor; import java.lang.annotation.*; @@ -49,6 +50,7 @@ public @interface EnablePigxFeignClients { * package names. * @return the array of 'basePackages'. */ + @AliasFor(annotation = EnableFeignClients.class) String[] basePackages() default { "com.pig4cloud.pigx" }; /** @@ -59,6 +61,7 @@ public @interface EnablePigxFeignClients { * serves no purpose other than being referenced by this attribute. * @return the array of 'basePackageClasses'. */ + @AliasFor(annotation = EnableFeignClients.class) Class[] basePackageClasses() default {}; /** @@ -68,6 +71,7 @@ public @interface EnablePigxFeignClients { * * @see FeignClientsConfiguration for the defaults */ + @AliasFor(annotation = EnableFeignClients.class) Class[] defaultConfiguration() default {}; /** @@ -75,6 +79,7 @@ public @interface EnablePigxFeignClients { * scanning. * @return */ + @AliasFor(annotation = EnableFeignClients.class) Class[] clients() default {}; }