From 0c1cfb8f28b1ba9c2af0561f11521b2ffd17e868 Mon Sep 17 00:00:00 2001 From: lijiayao <13831655+xiao-yao-charge-forward@user.noreply.gitee.com> Date: Wed, 3 Apr 2024 11:27:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=A1=86?= =?UTF-8?q?=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../couplet/remote/factory/RemoteVehicleFallbackFactory.java | 2 ++ .../com/couplet/business/server/CoupletBusinessApplication.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/couplet-common/couplet-common-business/src/main/java/com/couplet/remote/factory/RemoteVehicleFallbackFactory.java b/couplet-common/couplet-common-business/src/main/java/com/couplet/remote/factory/RemoteVehicleFallbackFactory.java index b0a3123..58fa254 100644 --- a/couplet-common/couplet-common-business/src/main/java/com/couplet/remote/factory/RemoteVehicleFallbackFactory.java +++ b/couplet-common/couplet-common-business/src/main/java/com/couplet/remote/factory/RemoteVehicleFallbackFactory.java @@ -7,6 +7,7 @@ import com.couplet.remote.RemoteVehicleService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cloud.openfeign.FallbackFactory; +import org.springframework.stereotype.Component; import java.util.List; @@ -16,6 +17,7 @@ import java.util.List; * @description: TODO * @date 2024/4/2 14:46 */ +@Component public class RemoteVehicleFallbackFactory implements FallbackFactory { private static final Logger log = LoggerFactory.getLogger(RemoteVehicleFallbackFactory.class); diff --git a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/CoupletBusinessApplication.java b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/CoupletBusinessApplication.java index e1c7f88..e0beabf 100644 --- a/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/CoupletBusinessApplication.java +++ b/couplet-modules/couplet-business/src/main/java/com/couplet/business/server/CoupletBusinessApplication.java @@ -13,7 +13,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; */ @EnableCustomConfig @EnableCustomSwagger2 -@EnableMyFeignClients +@EnableMyFeignClients(basePackages = ("com.couplet")) @SpringBootApplication(scanBasePackages = {"com.couplet"}) public class CoupletBusinessApplication { public static void main (String[] args) {