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
).
精彩评论