首页 > 技术文章 > java 反射

huanglin101 2017-12-05 17:35 原文

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

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

推荐阅读