package com.tcd.conn;
import java.sql.Connection;
import java.sql.DriverManager;
public class conn {
/**
* 数据库连接类
* @return
*/
public Connection getCon(){
try {
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost/guanlistudent";
String user = "root";
String password = "123456";
Connection conn = DriverManager.getConnection(url, user, password);
//System.out.println(conn);
return conn;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}
最近下载更多
WenMeng LV9
2024年12月2日
PISCESPLUS LV5
2024年9月3日
仙女山的月亮 LV2
2024年5月22日
微信网友_6790506018131968 LV1
2024年1月3日
asddwh LV13
2023年12月26日
17693282606 LV12
2023年12月20日
李朝磊 LV18
2023年12月7日
qiangmin1223 LV12
2023年4月24日
wwfl02 LV3
2022年12月5日
485415187 LV6
2022年11月20日

最近浏览