|
|
|
@ -5,7 +5,7 @@ import java.sql.DriverManager;
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
import java.sql.Statement;
|
|
|
|
|
|
|
|
|
|
//数据库连接工具类
|
|
|
|
|
public class DBUtil {
|
|
|
|
|
public static String driverString = "com.mysql.cj.jdbc.Driver";
|
|
|
|
|
public static String sqlurl = "jdbc:mysql://114.55.37.70:3306/graph";
|
|
|
|
@ -73,7 +73,7 @@ public class DBUtil {
|
|
|
|
|
|
|
|
|
|
} catch (SQLException e) {
|
|
|
|
|
|
|
|
|
|
// 为空,暂时为它新创建一个id
|
|
|
|
|
//为空,暂时为它新创建一个id
|
|
|
|
|
|
|
|
|
|
isnewyid = true;
|
|
|
|
|
return countTable("yangsheng")+1;
|
|
|
|
|