国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
spring下hibernate事務(wù)配置范例
  1.  <bean id="transactionManager"    
  2.          class="com.mit.web.hibernate.HibernateTransactionManager"/>  
  3.   
  4. <bean id="transres" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">  
  5.     <property name="properties">  
  6.         <props>  
  7.             <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>  
  8.             <prop key="save*">PROPAGATION_REQUIRED</prop>  
  9.             <prop key="delete*">PROPAGATION_REQUIRED</prop>  
  10.             <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>  
  11.             <prop key="query*">PROPAGATION_REQUIRED,readOnly</prop>  
  12.             <prop key="create*">PROPAGATION_REQUIRED</prop>  
  13.             <prop key="set*">PROPAGATION_REQUIRED,readOnly</prop>  
  14.             <prop key="execute*">PROPAGATION_REQUIRED</prop>  
  15.         </props>  
  16.     </property>  
  17. </bean>  
  18.   
  19. <bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">    
  20.        <property name="transactionManager" ref="transactionManager"/>    
  21.      <property name="transactionAttributeSource"><ref local="transres"/></property>  
  22.    </bean>    
  23.     
  24.    <bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">    
  25.  <property name="beanNames"><value>*Store,*Dao</value></property>  
  26.        <property name="interceptorNames">    
  27.            <list>    
  28.                <value>transactionInterceptor</value>    
  29.            </list>    
  30.        </property>    
  31.    </bean>    
  32.    
  33.    <bean class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor">    
  34.      <property name="transactionInterceptor" ref="transactionInterceptor"/>    
  35.    </bean>  
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
spring Transaction Manager和hibernate session 吐血經(jīng)驗(yàn)談
Spring中的四種聲明式事務(wù)的配置
Sping聲明式事務(wù)配置管理方法
反思Spring:由Ruby on Rails想到的
spring的那些事兒
Spring事務(wù)管理
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服