TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

使用mybatisPlus整合TDengine,连接方式可以使用REST 连接嘛,我看示例程序用的是原生连接方式。

Open yzh20021029 opened this issue 1 year ago • 1 comments

Bug Description A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Type in '....'
  3. 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.

yzh20021029 avatar May 15 '24 06:05 yzh20021029

可以, 改下driver-class-nameurl

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

trdmm avatar May 18 '24 08:05 trdmm