国产探花免费观看_亚洲丰满少妇自慰呻吟_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>

進入討論組討論。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宾川县| 法库县| 资中县| 南江县| 朝阳县| 宁陵县| 岳阳县| 新宁县| 临泽县| 京山县| 朝阳市| 上高县| 寿阳县| 司法| 衡阳市| 堆龙德庆县| 福清市| 侯马市| 恩平市| 西乌| 九寨沟县| 泽库县| 永州市| 清镇市| 潼关县| 达日县| 满洲里市| 辽宁省| 乌拉特中旗| 西华县| 博白县| 玉田县| 平凉市| 彩票| 杨浦区| 泰和县| 潍坊市| 长泰县| 石台县| 罗平县| 舒城县|