Loading

摘要: 连接mysql数据库时,通常的做法是在类的static块中写连接数据库的部分。如下图: static { try { Class.forName("com.mysql.jdbc.Driver"); Connection conn = (Connection) DriverManager.getCon 阅读全文
posted @ 2022-08-01 10:23 guwei4037 阅读(699) 评论(0) 推荐(0) 编辑