I have a question about Spring transaction propagation.
Suppose I use @Transactional(propagation = Propagation.REQUIRED)
to annotate a method m1()
. When execution logic enters m1()
, if there is already a transaction, m1()
will use that one. When after m1()
, what about the transaction? It will end or still remain open? (if I call m1()
in another method, and after the invocation there is still other things to do).
In summary, I want to know when exiting an annotated method, the transaction ends or still remains open?
Great thanks.