From 73d31dbf8c1b19d7eddea6d1e9e1a834da5ea63d Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Mon, 2 Dec 2024 15:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8feignapi=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../organ/config/ChenfengOrganRpcAutoConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cf-framework/cf-spring-boot-starter-biz-organ/src/main/java/com/cf/imes/framework/organ/config/ChenfengOrganRpcAutoConfiguration.java b/cf-framework/cf-spring-boot-starter-biz-organ/src/main/java/com/cf/imes/framework/organ/config/ChenfengOrganRpcAutoConfiguration.java index 381e5c604..830a96479 100644 --- a/cf-framework/cf-spring-boot-starter-biz-organ/src/main/java/com/cf/imes/framework/organ/config/ChenfengOrganRpcAutoConfiguration.java +++ b/cf-framework/cf-spring-boot-starter-biz-organ/src/main/java/com/cf/imes/framework/organ/config/ChenfengOrganRpcAutoConfiguration.java @@ -1,6 +1,7 @@ package com.cf.imes.framework.organ.config; import com.cf.imes.framework.organ.core.rpc.OrganRequestInterceptor; +import com.cf.imes.module.system.api.dept.DeptApi; import com.cf.imes.module.system.api.organ.OrganApi; import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; @@ -9,7 +10,7 @@ import org.springframework.context.annotation.Bean; @AutoConfiguration @ConditionalOnProperty(prefix = "chenfeng.organ", value = "enable", matchIfMissing = true) // 允许使用 chenfeng.organ.enable=false 禁用多组织 -@EnableFeignClients(clients = OrganApi.class) // 主要是引入相关的 API 服务 +@EnableFeignClients(clients = {OrganApi.class, DeptApi.class}) // 主要是引入相关的 API 服务 public class ChenfengOrganRpcAutoConfiguration { @Bean