public static Object invokeMethod(final Object object, final String method,
        final Consumer<ReflectiveOperationException> errorCallBack, final Object... args) {
        try {
            return MethodUtils.invokeMethod(object, method, args);
        } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
            errorCallBack.accept(e);
        }
        return null;
    }
Invoke method by class.

@param object        object
@param method        method
@param args          params
@param errorCallBack callback when throw exception
@return Method object
shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java