增强类的执行顺序受在XXX.xml文件位置影响
<!--定义增强的类型:before表示前置增强-->
<aop:before method="begins" pointcut-ref="pc1"/>
<!--环绕增强-->
<aop:around method="arounds" pointcut-ref="pc1" ></aop:around>
<!--后置增强-->
<aop:after-returning method="afters" pointcut-ref="pc1"/>
<!--异常增强-->
<aop:after-throwing method="exceptions" pointcut-ref="pc1"/>
<!--最终增强-->
<aop:after method="fillays" pointcut-ref="pc1"/>
注
当环绕增强在最终增强和后置增强之后,
最终增强和后置增强的输出语句会按两者顺序颠倒
待解释