接口 MethodBeforeAdvice

    • 方法详细资料

      • before

        void before​(Method method,
                    Object[] args,
                    Object target)
             throws Throwable
        Callback before a given method is invoked.
        参数:
        method - method being invoked
        args - arguments to the method
        target - target of the method invocation. May be null.
        抛出:
        Throwable - if this object wishes to abort the call. Any exception thrown will be returned to the caller if it's allowed by the method signature. Otherwise the exception will be wrapped as a runtime exception.