开发者

spring 3 configuration without transaction manager

开发者 https://www.devze.com 2023-02-11 15:23 出处:网络
How to not use (disable) transaction manager in spring configuration? I\'m doing simple a开发者_如何学Cpp that will add rows to database, so no need in any transactions.

How to not use (disable) transaction manager in spring configuration?

I'm doing simple a开发者_如何学Cpp that will add rows to database, so no need in any transactions. So, is it possible configure in xml, not to create any transaction managers?

PS: i use hibernate if this matters anyhow.


If you don't configure a Transaction Manager, neither will Spring. Just don't add any <tx:> tags and don't configure any PlatformTransactionManager beans (in your case HibernateTransactionManager).

0

精彩评论

暂无评论...
验证码 换一张
取 消