mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
部门feignapi引用补充
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user