Open helloWorld233333333 opened 3 weeks ago
请问你使用的什么版本? What version are you using?
我想了解下,为什么有注解的方式,还依然要用api加以配合呢? I would like to understand, why do we still use APIs in conjunction with annotations?
我想了解下,为什么有注解的方式,还依然要用api加以配合呢? I would like to understand, why do we still use APIs in conjunction with annotations?
你好,我用的是2.0.0版本
我想的是如果后续的代码还需要执行的话,就使用了手动回滚,但是在手动回滚之后,注解所触发的事务进程并没有被终止,导致最后return的时候还会去提交,触发了Global transaction[%s] not found, may be rollbacked.
,所以感觉很奇怪
回滚是正常的,但是最后return返回信息的时候触发了TransactionalTemplate的commitTransaction方法,由于手动回滚了,所以是Finished状态。但他的进程并不会终止? ` @Override @GlobalTransactional(name = "global-create-order", rollbackFor = Exception.class) public ResultData createOrder(Order order) { Integer result = orderMapper.insert(order);
}
`