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

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

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

    隨筆 - 16  文章 - 0  trackbacks - 0

    <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>
                <!--說(shuō)明事務(wù)類別 read-only表示不支持事務(wù),propagation的事務(wù)類別與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>

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

     <!-- Enable @Transactional support -->
     <tx:annotation-driven />
     
     <!-- 事務(wù)管理 -->
     <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) 評(píng)論(0)  編輯  收藏

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 免费夜色污私人影院网站电影 | 久久午夜夜伦鲁鲁片免费无码影视 | 亚洲国产成人精品无码区二本 | a级毛片免费播放| 亚洲国产精品狼友中文久久久 | 亚洲色WWW成人永久网址| 日本亚洲中午字幕乱码| 久久精品a一国产成人免费网站| 巨胸喷奶水视频www网免费| 亚洲一区二区三区国产精品| 噜噜噜亚洲色成人网站∨| 亚洲av日韩aⅴ无码色老头| 最近中文字幕mv免费高清视频7| 亚洲国产精品张柏芝在线观看| 国产亚洲福利一区二区免费看| 日韩免费无码一区二区三区| 日本免费无遮挡吸乳视频电影| 亚洲综合国产精品| 国产亚洲人成在线影院| 四虎影在线永久免费观看| 国产精品亚洲一区二区无码| 免费人成年激情视频在线观看| 美女露100%胸无遮挡免费观看| 免费国产一级特黄久久| 亚洲日韩在线观看免费视频| 亚洲日本va在线视频观看| 一区二区三区四区免费视频| 亚洲精品不卡视频| a级成人毛片免费视频高清| 亚洲人成在线影院| 99在线精品视频观看免费| 亚洲永久网址在线观看| 波多野结衣视频在线免费观看 | 免费无码作爱视频| 亚洲综合综合在线| 成年大片免费视频| 一级一片免费视频播放| 亚洲AV无码一区二区三区国产| aa级毛片毛片免费观看久| 亚洲国产黄在线观看 | 午夜免费福利小电影|