fix(iot): 添加 AreaDeviceApi 到 Feign 客户端配置
修复问题: - 启动时 Bean 创建失败:iotCleanRuleMessageHandler 注入依赖失败 - 原因:@EnableFeignClients 未包含 AreaDeviceApi Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
package com.viewsh.module.iot.framework.rpc.config;
|
||||
|
||||
import com.viewsh.module.system.api.mail.MailSendApi;
|
||||
import com.viewsh.module.system.api.notify.NotifyMessageSendApi;
|
||||
import com.viewsh.module.system.api.sms.SmsSendApi;
|
||||
import com.viewsh.module.system.api.user.AdminUserApi;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration(value = "iotRpcConfiguration", proxyBeanMethods = false)
|
||||
@EnableFeignClients(clients = {
|
||||
AdminUserApi.class, SmsSendApi.class, MailSendApi.class, NotifyMessageSendApi.class
|
||||
})
|
||||
public class RpcConfiguration {
|
||||
}
|
||||
package com.viewsh.module.iot.framework.rpc.config;
|
||||
|
||||
import com.viewsh.module.ops.api.area.AreaDeviceApi;
|
||||
import com.viewsh.module.system.api.mail.MailSendApi;
|
||||
import com.viewsh.module.system.api.notify.NotifyMessageSendApi;
|
||||
import com.viewsh.module.system.api.sms.SmsSendApi;
|
||||
import com.viewsh.module.system.api.user.AdminUserApi;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration(value = "iotRpcConfiguration", proxyBeanMethods = false)
|
||||
@EnableFeignClients(clients = {
|
||||
AdminUserApi.class, SmsSendApi.class, MailSendApi.class, NotifyMessageSendApi.class,
|
||||
AreaDeviceApi.class
|
||||
})
|
||||
public class RpcConfiguration {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user