0
点赞
收藏
分享

微信扫一扫

AOP xml 配置

一世独秀 2022-09-02 阅读 59

applicationContext.xml
<!--切面Bean-->
<bean id ="aspectbean" class='"con.softjx.intercept.MyInterceptior'>

<!--配置AOP-->
<aop:config>
  <aop:aspect id="asp" ref="aspectbean" order="1"><!--切面执行顺序-->
    <aop:around pointcut-ref="mycut" method="doBasic"/><!--切面配置通知-->
    <aop:before pointcut-ref="mycut" method="doBasic"/><!--切面配置通知-->
    <aop:after pointcut-ref="mycut" method="doBasic"/><!--切面配置通知-->
  </aop:aspect>
</aop:config>

举报

相关推荐

0 条评论