Commit 415dd435f36d995309f2360289602b2d062311b5
1 parent
83197023
【代码优化】IoT: 数据桥梁的执行器根据引入的消息队列动态加载
Showing
3 changed files
with
3 additions
and
3 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/rule/action/databridge/IotKafkaMQDataBridgeExecute.java
| @@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit; | @@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit; | ||
| 22 | * | 22 | * |
| 23 | * @author HUIHUI | 23 | * @author HUIHUI |
| 24 | */ | 24 | */ |
| 25 | -@ConditionalOnClass(KafkaTemplate.class) | 25 | +@ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate") |
| 26 | @Component | 26 | @Component |
| 27 | @Slf4j | 27 | @Slf4j |
| 28 | public class IotKafkaMQDataBridgeExecute extends | 28 | public class IotKafkaMQDataBridgeExecute extends |
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/rule/action/databridge/IotRabbitMQDataBridgeExecute.java
| @@ -18,7 +18,7 @@ import java.time.LocalDateTime; | @@ -18,7 +18,7 @@ import java.time.LocalDateTime; | ||
| 18 | * | 18 | * |
| 19 | * @author HUIHUI | 19 | * @author HUIHUI |
| 20 | */ | 20 | */ |
| 21 | -@ConditionalOnClass(Channel.class) | 21 | +@ConditionalOnClass(name = "com.rabbitmq.client.Channel") |
| 22 | @Component | 22 | @Component |
| 23 | @Slf4j | 23 | @Slf4j |
| 24 | public class IotRabbitMQDataBridgeExecute extends | 24 | public class IotRabbitMQDataBridgeExecute extends |
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/rule/action/databridge/IotRocketMQDataBridgeExecute.java
| @@ -19,7 +19,7 @@ import java.time.LocalDateTime; | @@ -19,7 +19,7 @@ import java.time.LocalDateTime; | ||
| 19 | * | 19 | * |
| 20 | * @author HUIHUI | 20 | * @author HUIHUI |
| 21 | */ | 21 | */ |
| 22 | -@ConditionalOnClass(DefaultMQProducer.class) | 22 | +@ConditionalOnClass(name = "org.apache.rocketmq.client.producer.DefaultMQProducer") |
| 23 | @Component | 23 | @Component |
| 24 | @Slf4j | 24 | @Slf4j |
| 25 | public class IotRocketMQDataBridgeExecute extends | 25 | public class IotRocketMQDataBridgeExecute extends |