Commit 86e4379e62908d938e9239cc14d69006075a28b7
1 parent
81739186
【功能完善】IoT:新增 TDengine 相关依赖
Showing
3 changed files
with
9 additions
and
3 deletions
yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
| @@ -63,12 +63,11 @@ | @@ -63,12 +63,11 @@ | ||
| 63 | <artifactId>opengauss-jdbc</artifactId> | 63 | <artifactId>opengauss-jdbc</artifactId> |
| 64 | <optional>true</optional> | 64 | <optional>true</optional> |
| 65 | </dependency> | 65 | </dependency> |
| 66 | - <!-- TODO @haohao:这个最好不要全局开启,而是按需开启哈。 --> | ||
| 67 | <dependency> | 66 | <dependency> |
| 68 | <groupId>com.taosdata.jdbc</groupId> | 67 | <groupId>com.taosdata.jdbc</groupId> |
| 69 | <artifactId>taos-jdbcdriver</artifactId> | 68 | <artifactId>taos-jdbcdriver</artifactId> |
| 69 | + <optional>true</optional> | ||
| 70 | </dependency> | 70 | </dependency> |
| 71 | - | ||
| 72 | <dependency> | 71 | <dependency> |
| 73 | <groupId>com.alibaba</groupId> | 72 | <groupId>com.alibaba</groupId> |
| 74 | <artifactId>druid-spring-boot-3-starter</artifactId> | 73 | <artifactId>druid-spring-boot-3-starter</artifactId> |
yudao-module-iot/yudao-module-iot-biz/pom.xml
| @@ -107,6 +107,12 @@ | @@ -107,6 +107,12 @@ | ||
| 107 | <version>24.1.2</version> | 107 | <version>24.1.2</version> |
| 108 | </dependency> | 108 | </dependency> |
| 109 | 109 | ||
| 110 | + <!-- TDengine 相关依赖 --> | ||
| 111 | + <dependency> | ||
| 112 | + <groupId>com.taosdata.jdbc</groupId> | ||
| 113 | + <artifactId>taos-jdbcdriver</artifactId> | ||
| 114 | + </dependency> | ||
| 115 | + | ||
| 110 | </dependencies> | 116 | </dependencies> |
| 111 | 117 | ||
| 112 | </project> | 118 | </project> |
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/rule/action/databridge/IotKafkaMQDataBridgeExecute.java
| @@ -10,6 +10,7 @@ import org.apache.kafka.common.serialization.StringSerializer; | @@ -10,6 +10,7 @@ import org.apache.kafka.common.serialization.StringSerializer; | ||
| 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
| 11 | import org.springframework.kafka.core.DefaultKafkaProducerFactory; | 11 | import org.springframework.kafka.core.DefaultKafkaProducerFactory; |
| 12 | import org.springframework.kafka.core.KafkaTemplate; | 12 | import org.springframework.kafka.core.KafkaTemplate; |
| 13 | +import org.springframework.stereotype.Component; | ||
| 13 | 14 | ||
| 14 | import java.time.Duration; | 15 | import java.time.Duration; |
| 15 | import java.time.LocalDateTime; | 16 | import java.time.LocalDateTime; |
| @@ -23,7 +24,7 @@ import java.util.concurrent.TimeUnit; | @@ -23,7 +24,7 @@ import java.util.concurrent.TimeUnit; | ||
| 23 | * @author HUIHUI | 24 | * @author HUIHUI |
| 24 | */ | 25 | */ |
| 25 | @ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate") | 26 | @ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate") |
| 26 | -//@Component | 27 | +@Component |
| 27 | @Slf4j | 28 | @Slf4j |
| 28 | public class IotKafkaMQDataBridgeExecute extends | 29 | public class IotKafkaMQDataBridgeExecute extends |
| 29 | AbstractCacheableDataBridgeExecute<IotDataBridgeKafkaMQConfig, KafkaTemplate<String, String>> { | 30 | AbstractCacheableDataBridgeExecute<IotDataBridgeKafkaMQConfig, KafkaTemplate<String, String>> { |