Java反射机制测试private方法,注意int.class(与Integer.class区别)
Class class1 = CycleInterestPrepareLocalService.class;
Method method = class1.getDeclaredMethod("interestDateMatch", Date.class,Date.class, int.
Java反射机制测试private方法,注意int.class(与Integer.class区别)
Class class1 = CycleInterestPrepareLocalService.class;
Method method = class1.getDeclaredMethod("interestDateMatch", Date.class,Date.class, int.