public Student getStudent(String sql, Object... args) { // 查询Student对象 Student stu = null; Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; try { conn = JDBCTools.getConnection(); ps = conn.prepareStatement(sql); // 填充占位符 for…