TDengine
TDengine copied to clipboard
使用mybatisPlus整合TDengine,连接方式可以使用REST 连接嘛,我看示例程序用的是原生连接方式。
Bug Description A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Type in '....'
- See error
Expected Behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS: [e.g. CentOS 7.0]
- Memory, CPU, current Disk Space
- TDengine Version [e.g. 1.6.1.7]
Additional Context Add any other context about the problem here.
可以, 改下driver-class-name和url
spring:
datasource:
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
url: jdbc:TAOS-RS://ip:6041/test?charset=UTF-8
username: root
password: taosdata
但是不知道为啥, url后面加上batchfetch=true会导致连接不上...搞了好久才发现这个原因...😢
服务端版本: 3.1.1.0 taos-jdbcdrive版本: 3.2.11