This attribute indicates that a transaction is needed and will be started by the method if one is not already present.
此属性表示需要一个事务,并且如果事务不存在,则由方法启动。
If a transaction is already running, the bean method will join in that transaction or the Spring lightweight transaction manager will start one for you.
如果事务已经在运行,那么bean方法会加入事务,否则Spring的轻量级事务管理器会启动一个事务。
However, if one public update method invokes another, the transaction owner may not have control of the rollback logic in some circumstances.
然而,如果其中一个公共更新方法调用了另一个,那么事务所有者在某些情况下可能无法控制回滚逻辑。
应用推荐