Home » Java » Spring transaction rollback

Spring transaction rollback

spring configuration for transaction rollback

we want to roll back according to the abnormal allocation of rollback-for capture throw, or rollback will fail; but also pay attention to the rollback path is correct, as in the example for com.web.service, if the use of MySQL database in the construction of the table to choose Innodb, because this connection support rollback.