Spring @Transactional method - participating transaction

前端 未结 3 1879
离开以前
离开以前 2020-12-10 18:23

in one dao I have 2 @Transactional methods.

if i do not provide any explicit properties,

then what will happen, if

I run one method in the body of an

3条回答
  •  醉话见心
    2020-12-10 18:34

    Spring doc

    one note:

    In proxy mode (which is the default), only external method calls coming in through the proxy are intercepted. This means that self-invocation, in effect, a method within the target object calling another method of the target object, will not lead to an actual transaction at runtime even if the invoked method is marked with @Transactional.

提交回复
热议问题