zoukankan      html  css  js  c++  java
  • 关于tx:method和pointcut中的方法,即事务管理中的方法和切入点表达式中的方法具体如何执行

         <tx:advice id="transaction" tranction-manager="transactionManager">
                <tx:attributes>
                    <tx:method name="*" isolation="DEFAULT" />
                </tx:attributes>
            </tx:advice>
            
            <aop:config>
                <aop:pointcut expression="* com.kylin.service.*.*(..)" id="point1"/>
                <aop:advisor advice-ref="transaction" pointcut-ref="point1"/>
            </aop:config>
    <aop:pointcut expression="* com.kylin.service.*.*(..)" id="point1"/>
    这里定义了切入点是:com.kylin.service包下的所有类的全部方法。
    tx:method name="*" 这里声明的方法如果包含在切入点里则表示作为一个事务执行。
  • 相关阅读:
    h5 穿透滚动
    Safari 导航栏
    浮层滚动问题
    兼容性常规检测
    CORS
    Webpack 一些概念
    01 离散时间信号的时域表示
    03 信道容量
    01 MATLAB基本概念
    02 字斟句酌
  • 原文地址:https://www.cnblogs.com/uoar/p/7594802.html
Copyright © 2011-2022 走看看