22. AOP代理
AOP代理
<aop:config proxy-target-class="true">
<!-- other beans defined here... -->
</aop:config><aop:aspectj-autoproxy proxy-target-class="true"/>AOP Proxies原理
public class SimplePojo implements Pojo {
public void foo() {
// this next method invocation is a direct call on the 'this' reference
this.bar();
}
public void bar() {
// some logic...
}
}

最后更新于
这有帮助吗?