Spring Boot, Transactions, Java, Spring Data.
allows you to specify which exceptions should trigger a rollback of the transaction using the rollbackFor attribute. By default, the transaction will be rolled back for unchecked exceptions. The @Transactional also supports the timeout attribute, allowing you to set a timeout for the transaction.