标签:spring transaction 事务 事务传递性 aop动态代理
Spring bean 假设有如下类public class Service implement IService{
@Transactional(readOnly = false, propagation=Propagation.REQUIRED)
public void methodA(){
.....
methodB()
......
}
@Transactional(readOnly = false, propagation=Propagation.REQUIRES_NEW)
public void methodB{
......
}
}
public class ServiceFacade{
@Autowired
private Iservice service;
public void method(){
service.methodA(){
}
}
}
标签:spring transaction 事务 事务传递性 aop动态代理
原文地址:http://blog.csdn.net/seven_3306/article/details/41829121