通过rest方式连接不需要在本地安装客户端
#rest
spring.datasource.driver-class-name=com.taosdata.jdbc.rs.RestfulDriver
spring.datasource.url=jdbc:TAOS-RS://tdengine:36041/simple
spring.datasource.user-name=root
spring.datasource.password=root
#client
#spring.datasource.driver-class-name=com.taosdata.jdbc.TSDBDriver
#spring.datasource.url=jdbc:TAOS://tdengine:36030/simple
java:
String url= "jdbc:TAOS-RS://tdengine:36041/simple?user=root&password=root";
Connection conn = DriverManager.getConnection(url);
参考 示例代码 https://gitee.com/anyline/anyline-simple/tree/master/anyline-simple-data-jdbc-dialect/anyline-simple-data-jdbc-tdengine