正常情况使用不带参的执行就行
Object proceed() throws Throwable;
带参数的就是若是在aop中参数值有替换的情况下需要将新的参数列表更新
Object proceed(Object[] var1) throws Throwable;
PS,org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint源码
public Object proceed() throws Throwable { return this.methodInvocation.invocableClone().proceed(); } public Object proceed(Object[] arguments) throws Throwable { Assert.notNull(arguments, "Argument array passed to proceed cannot be null"); if (arguments.length != this.methodInvocation.getArguments().length) { throw new IllegalArgumentException("Expecting " + this.methodInvocation.getArguments().length + " arguments to proceed, but was passed " + arguments.length + " arguments"); } else { this.methodInvocation.setArguments(arguments); return this.methodInvocation.invocableClone(arguments).proceed(); } }
最近发现很多网上的资料不一定很准确,还是需要查看源码能准确知道函数的作用,
且简单的情况下查看源码比搜索引擎的文章更快捷