Class.getDeclaredFields()与PropertyUtils.describe()

clazz.getDeclaredFields() 和 PropertyUtils.describe()得到的属性集是不一样的!

前者只取声明了、真正的成员变量

后者却从所有的 getXxx()方法中析取出属性

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.