<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

    常用鏈接

    留言簿

    隨筆檔案

    友情鏈接

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    <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>
                <!--說明事務(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ù) 說明你要攔截那些包下面的類的方法-->
          <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 民工二代 閱讀(304) 評(píng)論(0)  編輯  收藏

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


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 欧美亚洲国产SUV| 亚洲国产成AV人天堂无码| 精品久久久久久亚洲中文字幕| 永久黄色免费网站| 亚洲一区综合在线播放| 男女作爱在线播放免费网站| 黑人精品videos亚洲人| 日韩免费电影网址| 亚洲日本va午夜中文字幕一区| 成人爽a毛片免费| 亚洲一区二区影院| 亚洲精品免费在线| 亚洲高清一区二区三区| 日韩激情淫片免费看| 久久亚洲AV成人无码国产最大| 四虎影在线永久免费四虎地址8848aa | 亚洲综合色自拍一区| 国产精品免费看久久久香蕉| 亚洲色成人网站WWW永久| 久久99精品免费视频| 亚洲伦理一二三四| 国产自产拍精品视频免费看| 一道本不卡免费视频| 亚洲av永久无码精品漫画| h视频在线观看免费完整版| 亚洲欧洲免费无码| 亚洲午夜激情视频| 亚洲五月综合网色九月色| 免费看香港一级毛片| 国产区图片区小说区亚洲区| 国产美女亚洲精品久久久综合| 91精品国产免费| 久久亚洲精品高潮综合色a片| 在线A亚洲老鸭窝天堂| 久久精品国产免费观看三人同眠| 亚洲av成人一区二区三区在线播放| 久久影院亚洲一区| 97人伦色伦成人免费视频| 污污污视频在线免费观看| 亚洲精品国产成人| 亚洲国产V高清在线观看|