-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
手动回滚之后还会去触发commitTransaction方法? #6607
Comments
helloWorld233333333
changed the title
手动回滚之后不能返回自定义信息吗?
手动回滚之后还会去触发commitTransaction方法?
Jun 12, 2024
请问你使用的什么版本? |
我想了解下,为什么有注解的方式,还依然要用api加以配合呢? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
回滚是正常的,但是最后return返回信息的时候触发了TransactionalTemplate的commitTransaction方法,由于手动回滚了,所以是Finished状态。但他的进程并不会终止?
`
@OverRide
@GlobalTransactional(name = "global-create-order", rollbackFor = Exception.class)
public ResultData createOrder(Order order) {
Integer result = orderMapper.insert(order);
}
`
The text was updated successfully, but these errors were encountered: