|
@@ -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");
|
|
|
}
|
|
|
}
|