删除无用代码

This commit is contained in:
seahi 2024-12-17 12:40:24 +08:00
parent 425b689d81
commit 109bbad34b

View File

@ -29,18 +29,4 @@ public class DatabaseUtil {
public static Connection getConnection() throws SQLException {
return DriverManager.getConnection(URL, USERNAME, PASSWORD);
}
/**
* 关闭数据库连接
* @param conn 要关闭的连接对象
*/
public static void closeConnection(Connection conn) {
if (conn != null) {
try {
conn.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
}