Browse Source

测试TD库

xieshengjie 2 years ago
parent
commit
6abf57607e

+ 4 - 2
web/adapter-td-hb/src/main/java/com/gyee/adapter/init/RestInsertExample.java

@@ -10,6 +10,7 @@ import java.util.List;
 public class RestInsertExample {
     private static Connection getConnection() throws SQLException {
         String jdbcUrl = "jdbc:TAOS-RS://10.81.3.164:6041?user=root&password=taosdata";
+//        String jdbcUrl = "jdbc:TAOS-RS://124.70.75.91:6041?user=root&password=taosdata";
         return DriverManager.getConnection(jdbcUrl);
     }
 
@@ -89,7 +90,8 @@ public class RestInsertExample {
     }
 
     public static void main(String[] args) throws SQLException {
-        createStable("wisdom","SYGCJSFW");
-        initPoint("windpowerstationpointnew","SXJN.JSFWSYGC","SYGCJSFW","wisdom");
+        Connection connection = getConnection();
+//        createStable("wisdom","SYGCJSFW");
+//        initPoint("windpowerstationpointnew","SXJN.JSFWSYGC","SYGCJSFW","wisdom");
     }
 }