国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

spring 2.0 的事務自動處理

2019-11-17 06:04:22
字體:
來源:轉載
供稿:網友
 <aop:config>
        <!--<aop:advisor id="userManagerTx" advice-ref="userManagerTxAdvice" pointcut="execution(* *..service.UserManager.*(..))" order="0"/>-->       
        <!--<aop:advisor id="userManagerSecurity" advice-ref="userSecurityAdvice" pointcut="execution(* *..service.UserManager.saveUser(..))" order="1"/>-->
        <aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(* *..service.*Manager.*(..)) execution(* *..service.*Service.*(..))" order="0"/>
    </aop:config>
   
    <tx:advice id="txAdvice">
        <tx:attributes>
            <tx:method name="get*"             <tx:method name="save*" propagation="REQUIRED"/>
            <tx:method name="update*" propagation="REQUIRED"/>
            <tx:method name="remove*" propagation="REQUIRED"/>
            <tx:method name="*" propagation="SUPPORTS"/>
        </tx:attributes>
    </tx:advice>

 <!-- Transaction manager for a single JDBC DataSource -->
    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        <property name="dataSource" ref="dataSource"/>
    </bean>

進入討論組討論。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 昆明市| 林芝县| 泸定县| 海宁市| 峨眉山市| 呼图壁县| 崇阳县| 正蓝旗| 尉氏县| 嘉鱼县| 宜丰县| 瑞安市| 大连市| 琼结县| 武汉市| 响水县| 旬阳县| 南华县| 牡丹江市| 台安县| 岱山县| 陵川县| 阿合奇县| 三门峡市| 双江| 建德市| 洞口县| 台南县| 普洱| 赤壁市| 神池县| 黔东| 图木舒克市| 孟津县| 诸城市| 长沙市| 桦甸市| 日土县| 社旗县| 麦盖提县| 依兰县|