这里需要注意的一点在于,服务对象本地调用并不经过事务代理,因此将始终在调用者的事务上下文中进行。
One caveat here is that service object local calls do not go through the transactional proxy, and thus will always occur in the transaction context of the caller.
使用Spring AOP,任何受spring框架管理的对象都可变为面向方面的,并且本教程利用了通过Spring AOP提供的声明式事务管理服务。
With the Spring AOP, any object managed by the Spring Framework can become aspect oriented, and this tutorial relies on the declarative transaction management services provided via the Spring AOP.
使用Spring AOP,任何受spring框架管理的对象都可变为面向方面的,并且本教程利用了通过Spring AOP提供的声明式事务管理服务。
With the Spring AOP, any object managed by the Spring Framework can become aspect oriented, and this tutorial will rely on the declarative transaction management services provided by the Spring AOP.
应用推荐