ssh框架update操作不更新的问题
卧槽怎么办 2016-10-17 01:19:03 Service A{
@Transactional
update A(){};
}
Service B{
@Transactional
insert B(){ };
@Transactional
doSomethingB(){
insert B(){ };
Service A.update A();
}
}
Service C{
@Transactional
insert C(){};
@Transactional
doSomething(){
insert C();
Service B.doSomethingB();
}
}
大概形式就是这样,使用的是Oracle数据库,不知道为何,在Service C执行 doSomething()方法大概有1/200的概率update不到数据A的数据,并不是高并发啊。请教大神这是什么原因呢?使用的是SSH框架,@Transactional 这个注解使用的是默认模式