Spring Boot · Medium
What is the difference between rollbackFor and noRollbackFor in @Transactional?
Spring BootJPA & TransactionsTransactionsSeniorStaff
Answer preview
rollbackFor — specifies exception types (including checked exceptions) that should trigger a rollback. Without this, Spring only rolls back for RuntimeException and Error. @Transactional(rollbackFor = {IOException.class, BusinessException.class})…