<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 16  文章 - 0  trackbacks - 0
    <2012年3月>
    26272829123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿

    隨筆檔案

    友情鏈接

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    <beans xmlns=" xmlns:xsi="http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
               http://www.springframework.org/schema/context
               http://www.springframework.org/schema/context/spring-context-3.1.xsd        
               http://www.springframework.org/schema/aop
               http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
               http://www.springframework.org/schema/tx
              

     <!-- 攔截配置 -->
     <tx:advice id="txAdvice" transaction-manager="transactionManager">
          <tx:attributes>
                <!--說明事務類別 read-only表示不支持事務,propagation的事務類別與EJB保持一致-->
               <tx:method name="find*" read-only="true" />
               <tx:method name="get*" read-only="true" />
               <tx:method name="load*" read-only="true" />
               <tx:method name="save*" propagation="REQUIRED" />
               <tx:method name="insert*" propagation="REQUIRED" />
               <tx:method name="update*" propagation="REQUIRED" />
               <tx:method name="delete*" propagation="REQUIRED" />
               <tx:method name="*" propagation="REQUIRED" />
          </tx:attributes>
     </tx:advice>

     <!-- 切入點 -->
     <aop:config>
          <!-- Dao層事務 說明你要攔截那些包下面的類的方法-->
          <aop:advisor id="daoTx" advice-ref="txAdvice"  pointcut="execution(* *..dao.impl.*.*(..))" order="0" />
          <!-- service層事務 -->
          <aop:advisor id="serviceTx" advice-ref="txAdvice"  pointcut="execution(* *..service.impl.*.*(..))" order="1" />
     </aop:config>

     <!-- Enable @Transactional support -->
     <tx:annotation-driven />
     
     <!-- 事務管理 -->
     <bean id="transactionManager"  class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
          <property name="dataSource" ref="dataSource" />
     </bean>
    。。。下面是具體的dataSource配置
    或下載附件
    http://www.tkk7.com/Files/yiqi/application-resources.rar

    posted on 2012-03-13 10:56 民工二代 閱讀(310) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 久久久久久亚洲精品成人| 国产成人亚洲综合无码| 夜夜亚洲天天久久| 免费A级毛片在线播放| 亚洲第一极品精品无码久久| 国产精品国产免费无码专区不卡| 亚洲精品中文字幕无乱码麻豆| 亚洲youwu永久无码精品 | 亚洲香蕉在线观看| 99热在线精品免费全部my| 亚洲另类精品xxxx人妖| 99精品国产免费久久久久久下载| 亚洲AV无码精品蜜桃| 日韩免费观看一级毛片看看| 精品在线免费视频| 亚洲一区二区三区在线观看精品中文 | 在线观看免费精品国产| 在线观看亚洲免费视频| 亚洲男人的天堂一区二区| 国产日韩久久免费影院| 亚洲资源在线观看| 青青青国产在线观看免费| 亚洲精品无码成人AAA片| 久久久久免费看成人影片| 亚洲mv国产精品mv日本mv| 国产大片免费观看中文字幕| 亚洲免费一区二区| 免费在线观看一级毛片| 亚洲人成在线精品| 国产男女猛烈无遮挡免费视频网站 | 亚洲中文字幕久久精品无码APP | 久久久久久亚洲精品不卡| 久久免费精品视频| 亚洲日韩精品无码AV海量| 亚洲一区无码精品色| 免费观看美女用震蛋喷水的视频| 亚洲精品精华液一区二区| 国产亚洲一区二区手机在线观看| 久草视频免费在线观看| 又黄又大的激情视频在线观看免费视频社区在线 | 在线观看视频免费完整版|