apache beanutils

官方文档
http://commons.apache.org/beanutils/apidocs/org/apache/commons/beanutils/package-summary.html#package_description

层次访问(Nested Property Access)

如String city = employee.getAddress("home").getCity();
可以写成String city = (String)
      PropertyUtils.getNestedProperty(employee, "address(home).city");

bean转化成map
map = BeanUtils.describe(po);

你可能感兴趣的:(BeanUtils)