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 | 63 | <artifactId>opengauss-jdbc</artifactId> |
| 64 | 64 | <optional>true</optional> |
| 65 | 65 | </dependency> |
| 66 | - <!-- TODO @haohao:这个最好不要全局开启,而是按需开启哈。 --> | |
| 67 | 66 | <dependency> |
| 68 | 67 | <groupId>com.taosdata.jdbc</groupId> |
| 69 | 68 | <artifactId>taos-jdbcdriver</artifactId> |
| 69 | + <optional>true</optional> | |
| 70 | 70 | </dependency> |
| 71 | - | |
| 72 | 71 | <dependency> |
| 73 | 72 | <groupId>com.alibaba</groupId> |
| 74 | 73 | <artifactId>druid-spring-boot-3-starter</artifactId> | ... | ... |
yudao-module-iot/yudao-module-iot-biz/pom.xml
| ... | ... | @@ -107,6 +107,12 @@ |
| 107 | 107 | <version>24.1.2</version> |
| 108 | 108 | </dependency> |
| 109 | 109 | |
| 110 | + <!-- TDengine 相关依赖 --> | |
| 111 | + <dependency> | |
| 112 | + <groupId>com.taosdata.jdbc</groupId> | |
| 113 | + <artifactId>taos-jdbcdriver</artifactId> | |
| 114 | + </dependency> | |
| 115 | + | |
| 110 | 116 | </dependencies> |
| 111 | 117 | |
| 112 | 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 | 10 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
| 11 | 11 | import org.springframework.kafka.core.DefaultKafkaProducerFactory; |
| 12 | 12 | import org.springframework.kafka.core.KafkaTemplate; |
| 13 | +import org.springframework.stereotype.Component; | |
| 13 | 14 | |
| 14 | 15 | import java.time.Duration; |
| 15 | 16 | import java.time.LocalDateTime; |
| ... | ... | @@ -23,7 +24,7 @@ import java.util.concurrent.TimeUnit; |
| 23 | 24 | * @author HUIHUI |
| 24 | 25 | */ |
| 25 | 26 | @ConditionalOnClass(name = "org.springframework.kafka.core.KafkaTemplate") |
| 26 | -//@Component | |
| 27 | +@Component | |
| 27 | 28 | @Slf4j |
| 28 | 29 | public class IotKafkaMQDataBridgeExecute extends |
| 29 | 30 | AbstractCacheableDataBridgeExecute<IotDataBridgeKafkaMQConfig, KafkaTemplate<String, String>> { | ... | ... |