public static Object getProperty(final Object bean, final String name) throws NoSuchFieldException, IllegalAccessException {
        Field field = bean.getClass().getDeclaredField(name);
        field.setAccessible(true);
        return field.get(bean);
    }
public static Object getProperty(final Object bean, final String name) throws NoSuchFieldException, IllegalAccessException {
        Field field = bean.getClass().getDeclaredField(name);
        field.setAccessible(true);
        return field.get(bean);
    }
public static Object getProperty ( final Object bean , final String name ) throws NoSuchFieldException , IllegalAccessException { Field field = bean . getClass ( ) . getDeclaredField ( name ) ; field . setAccessible ( true ) ; return field . get ( bean ) ; }
获取属性
@param bean
@param name
@return
获取属性