返回顶部
首页 > 资讯 > 精选 >The sence about Transaction in Spring
  • 641
分享到

The sence about Transaction in Spring

2023-06-03 01:06:59 641人浏览 泡泡鱼
摘要

Some sence are strange in our project. I should make note.Has following methods:ClassA.methodA -- no tranactionClassA.me

Some sence are strange in our project. I should make note.

Has following methods:

ClassA.methodA -- no tranaction

ClassA.methodB -- tranaction REQUIRES

ClassC.methodC -- tranaction REQUIRES

ClassC.methodD -- tranaction REQUIRES_NEW

When calls methodB from methodA. the tranaction doesn't work.

2When calls methodB from methodC the tranaction works.

3 When calls methodD from methodB the requires_new doesn't work. it doen't use the new tranaction.

4 the requires_new will create the new session. please make sure you need to use requires_new.

Are the sences above the same are you think?

[@more@]

--结束END--

本文标题: The sence about Transaction in Spring

本文链接: https://lsjlt.com/news/231969.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作