AOP——基于Schema

  • 声明一个切面

 切面使用<aop:aspect/>来声明

 

<aop:config>
  <aop:aspect id="myAspect" ref="aBean">
    ...
  </aop:aspect>
</aop:config>

<bean id="aBean" class="..."/>

 

声明一个切入点

猜你喜欢

转载自endless.iteye.com/blog/1786579