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 | 22 | * |
| 23 | 23 | * @author HUIHUI |
| 24 | 24 | */ |
| 25 | -@ConditionalOnClass(KafkaTemplate.class) | |
| 25 | +@ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate") | |
| 26 | 26 | @Component |
| 27 | 27 | @Slf4j |
| 28 | 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
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 | 19 | * |
| 20 | 20 | * @author HUIHUI |
| 21 | 21 | */ |
| 22 | -@ConditionalOnClass(DefaultMQProducer.class) | |
| 22 | +@ConditionalOnClass(name = "org.apache.rocketmq.client.producer.DefaultMQProducer") | |
| 23 | 23 | @Component |
| 24 | 24 | @Slf4j |
| 25 | 25 | public class IotRocketMQDataBridgeExecute extends | ... | ... |