getinstance方法
https://www.cnblogs.com/roadone/p/7977544.html
//实例化
public static DBConnect instance;
public static DBConnect getInstance(){
if(instance == null){
instance = new DBconnect();
}
return instance;
}
getinstance方法
https://www.cnblogs.com/roadone/p/7977544.html
//实例化
public static DBConnect instance;
public static DBConnect getInstance(){
if(instance == null){
instance = new DBconnect();
}
return instance;
}