package com.template.util;
import java.sql.Connection;
/**
 * @Author：liuxinyue
 * @Package：com.template.util
 * @Project：cloud-server
 * @name：IOTDBConnectionTets
 * @Date：2024/9/24 10:34
 */
public class IOTDBConnectionTets {

    private static final String url = "jdbc:iotdb://47.116.173.119:6667/";
    private static final String username = "root";
    private static final String password = "root";

    public static void main(String[] args) {
        Connection conn = new IOTdbJDBCUtils(url, username, password).getConnection();
        System.out.println(conn != null ? "打开连接成功!" : "打开连接失败!");
        IOTdbJDBCUtils.close(conn);
    }

}
