3.10 AOP

@Mock
public Object $advice(Invocation invocation) {
    invocation.proceed();
}

使用$advice()方法,使得对所有方法的调用都执行该方法。

你可能感兴趣的:(3.10 AOP)