java 反射

1.Field keyField = obj.getClass().getDeclaredField(keyName);

能通过反射获取到obj类的私有属性值

原文地址:https://www.cnblogs.com/huanglin101/p/7988411.html