摘要:
1.反射方法public void test(Object o) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, IntrospectionException { Field[] fields = o.getClass().getDeclaredFields(); for (Field f : fields) { // 设置允许访问私有字段的值 f.setAcc... 阅读全文