摘要:
====>我的新浪小铺public class TestReflect {public static void main(String[] args){APerson a=new APerson();Field fields[] = a.getClass().getDeclaredFields();String[] name = new String[fields.length];Object[] value = new Object[fields.length];try{ Field.setAccessible(fields, true); for (int i = 0; i < 阅读全文
摘要:
====>我的新浪小铺package com.landray.kmss.km.mdm.maindata.jdbc.tools;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.lang.reflect.Modifier;public class Test {public static void main(String[] args){try {TestBean bean = new TestBean();String temp = "";bean.setAge(&quo 阅读全文