5.8. 代理机制
<aop:config proxy-target-class="true">
<!-- other beans defined here... -->
</aop:config><aop:aspectj-autoproxy proxy-target-class="true"/>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...
}
}

最后更新于