首页 > 其他 > 详细

aop 切面配置

时间:2015-12-18 14:45:24      阅读:166      评论:0      收藏:0      [点我收藏+]
 <bean id="userServiceImpl" class="com.bj.aop.xml.before.UserServiceImpl"></bean>
    <bean id="security" class="com.bj.aop.xml.before.Security"></bean>
    <aop:config>
    <aop:aspect id="aa" ref="security">
    <aop:pointcut expression="execution(* *.saveUser*(..))" id="save"/>
    <aop:pointcut expression="execution(void com.bj.aop.xml.before.UserServiceImpl.updateUser(java.lang.String, java.lang.String))" id="update"/>
    <aop:before method="checkSecurity" pointcut-ref="save"/>
     <aop:before method="checkSecurity" pointcut-ref="update"/>
    </aop:aspect>
    </aop:config>

 

aop 切面配置

原文:http://www.cnblogs.com/baijin05/p/5056943.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!