获取对象的属性 @param bean 判断的目标bean @param pro 判断的属性 @return 属性对应的值 @throws InvocationTargetException @throws IllegalAccessException
(Object bean, String pro)
| 158 | * @throws IllegalAccessException |
| 159 | */ |
| 160 | public static Object getProperty(Object bean, String pro) throws InvocationTargetException, IllegalAccessException { |
| 161 | add(bean); |
| 162 | return readMethod(bean, getReadMethod(bean, pro)); |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * 获取对象的属性 |