public static Object getFieldValue(final Object obj, final Field field) {
        if (Objects.isNull(obj) || Objects.isNull(field)) {
            return null;
        }
        field.setAccessible(true);
        Object result = null;
        try {
            result = field.get(obj);
        } catch (IllegalAccessException e) {
            LOG.error("", e);
        }
        return result;
    }
Gets field value.

@param obj   the obj
@param field the field
@return the field value
shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java