Class c = CRUDMentMainTest.class;
Method t2 = c.getMethod("t2");
因为c.getMethod("t2");只能调用 public 方法
改用:Method t2 = c.getDeclaredMethod("t2");
Class c = CRUDMentMainTest.class;
Method t2 = c.getMethod("t2");
因为c.getMethod("t2");只能调用 public 方法
改用:Method t2 = c.getDeclaredMethod("t2");