Jelajahi Sumber

:zap: 优化feign扫描规则

冷冷 6 tahun lalu
induk
melakukan
96631b8195

+ 2 - 4
pigx-common/pigx-common-security/src/main/java/com/pig4cloud/pigx/common/security/feign/EnablePigxFeignClients.java

@@ -17,8 +17,6 @@
 
 package com.pig4cloud.pigx.common.security.feign;
 
-import com.pig4cloud.pigx.admin.api.feign.RemoteLogService;
-import com.pig4cloud.pigx.admin.api.feign.RemoteUserService;
 import org.springframework.cloud.openfeign.EnableFeignClients;
 
 import java.lang.annotation.*;
@@ -51,7 +49,7 @@ public @interface EnablePigxFeignClients {
 	 *
 	 * @return the array of 'basePackages'.
 	 */
-	String[] basePackages() default {};
+	String[] basePackages() default {"com.pig4cloud.pigx"};
 
 	/**
 	 * Type-safe alternative to {@link #basePackages()} for specifying the packages to
@@ -78,5 +76,5 @@ public @interface EnablePigxFeignClients {
 	 *
 	 * @return
 	 */
-	Class<?>[] clients() default {RemoteUserService.class, RemoteLogService.class};
+	Class<?>[] clients() default {};
 }