AOP xml 配置

99封情书 提交于 2019-12-04 04:02:29

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>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!