I know that the default rollback policy within the Transaction Manager is automatic rolling back when RuntimeExceptions occur. Though, what happens if I have a checked exception that is allowed to propagate?
I know that the default rollback policy within the Transaction Manager is automatic rolling
Share
Source
Even if checked exception is thrown, Spring will commit the transaction as if everything is fine.
If required you can configure a rollback on a checked exceptions.
Like
Will perform a rollback when
AnyCheckedExceptionis thrown.This might help : Spring transaction management with checked and unchecked exception