【代码优化】IoT: 数据桥梁的执行器根据引入的消息队列动态加载
This commit is contained in:
parent
831970233c
commit
415dd435f3
|
@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
|
|||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
@ConditionalOnClass(KafkaTemplate.class)
|
||||
@ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate")
|
||||
@Component
|
||||
@Slf4j
|
||||
public class IotKafkaMQDataBridgeExecute extends
|
||||
|
|
|
@ -18,7 +18,7 @@ import java.time.LocalDateTime;
|
|||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
@ConditionalOnClass(Channel.class)
|
||||
@ConditionalOnClass(name = "com.rabbitmq.client.Channel")
|
||||
@Component
|
||||
@Slf4j
|
||||
public class IotRabbitMQDataBridgeExecute extends
|
||||
|
|
|
@ -19,7 +19,7 @@ import java.time.LocalDateTime;
|
|||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
@ConditionalOnClass(DefaultMQProducer.class)
|
||||
@ConditionalOnClass(name = "org.apache.rocketmq.client.producer.DefaultMQProducer")
|
||||
@Component
|
||||
@Slf4j
|
||||
public class IotRocketMQDataBridgeExecute extends
|
||||
|
|
Loading…
Reference in New Issue