package com.tushugl.DbUtil; import java.sql.*; public class Dbutil { public static Connection conn = null; public static Connection getConn() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e) { e.printStackTrace(); } try { conn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/mydb", "root", "123456"); } catch (SQLException e) { e.printStackTrace(); } return conn; } public static void close() { try { if (conn != null) { conn.close(); } } catch (Exception e) { e.printStackTrace(); } } }

wwwwerttttww LV1
6月23日
hsgyfd LV1
6月19日
樱小庄 LV1
6月16日
yuanshun LV7
2024年12月10日
asdfgvb LV1
2024年12月3日
小小白123 LV1
2024年10月16日
微信网友_7043209210023936 LV1
2024年6月18日
xiaoyu111ewsd LV4
2024年1月7日
taoshen95 LV16
2024年1月5日
我的心里面激动 LV1
2024年1月4日

wwwwerttttww LV1
6月23日
hsgyfd LV1
6月19日
chengjingjingjing
6月17日
暂无贡献等级
樱小庄 LV1
6月16日
付洋麟 LV5
4月23日
LLLlllAAAaaa LV1
4月7日
2480047258 LV1
2024年12月10日
yuanshun LV7
2024年12月10日
asdfgvb LV1
2024年12月3日
小小白123 LV1
2024年10月16日