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.
然而,如果其中一个公共更新方法调用了另一个,那么事务所有者在某些情况下可能无法控制回滚逻辑。
If you used Spring AOP for transaction handling you could place the appropriate method calls declaratively, rather than having to place each one individually.
如果使用SpringAOP进行事务处理,那么可以声明性地安排适当的方法调用,而不必逐个安排。
The NotSupported transaction attribute specifies that the method being called will not use or start a transaction, regardless if one is present.
NotSupported事务属性指定被调用的方法将不使用或启动事务,无论是否呈现了事务。
The NotSupported transaction attribute specifies that the method being called will not use or start a transaction, regardless if one is present.
NotSupported事务属性指定被调用的方法将不使用或启动事务,无论是否呈现了事务。
应用推荐