国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看
打開APP
未登錄
開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服
開通VIP
首頁
好書
留言交流
下載APP
聯(lián)系客服
spring下hibernate事務(wù)配置范例
goldbomb
>《spring》
2007.05.18
關(guān)注
<
bean
id
=
"transactionManager"
class
=
"com.mit.web.hibernate.HibernateTransactionManager"
/>
<
bean
id
=
"transres"
class
=
"org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"
>
<
property
name
=
"properties"
>
<
props
>
<
prop
key
=
"load*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
=
"save*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
=
"delete*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
=
"find*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
=
"query*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
=
"create*"
>
PROPAGATION_REQUIRED
</
prop
>
<
prop
key
=
"set*"
>
PROPAGATION_REQUIRED,readOnly
</
prop
>
<
prop
key
=
"execute*"
>
PROPAGATION_REQUIRED
</
prop
>
</
props
>
</
property
>
</
bean
>
<
bean
id
=
"transactionInterceptor"
class
=
"org.springframework.transaction.interceptor.TransactionInterceptor"
>
<
property
name
=
"transactionManager"
ref
=
"transactionManager"
/>
<
property
name
=
"transactionAttributeSource"
>
<
ref
local
=
"transres"
/>
</
property
>
</
bean
>
<
bean
class
=
"org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"
>
<
property
name
=
"beanNames"
>
<
value
>
*Store,*Dao
</
value
>
</
property
>
<
property
name
=
"interceptorNames"
>
<
list
>
<
value
>
transactionInterceptor
</
value
>
</
list
>
</
property
>
</
bean
>
<
bean
class
=
"org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor"
>
<
property
name
=
"transactionInterceptor"
ref
=
"transactionInterceptor"
/>
</
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ù)
首頁
萬象
文化
人生
生活
健康
教育
職場(chǎng)
理財(cái)
娛樂
藝術(shù)
上網(wǎng)
留言交流
回頂部
聯(lián)系我們
分享
收藏
點(diǎn)擊這里,查看已保存的文章
導(dǎo)長(zhǎng)圖
關(guān)注
一鍵復(fù)制
下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!
聯(lián)系客服
微信登錄中...
請(qǐng)勿關(guān)閉此頁面
先別劃走!
送你5元優(yōu)惠券,購(gòu)買VIP限時(shí)立減!
5
元
優(yōu)惠券
優(yōu)惠券還有
10:00
過期
馬上使用
×