Transaction Management
Learn Transaction Management (Spring MVC + Database, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Transaction is a group of database operations that either all succeed (commit) or all undo (rollback); it follows ACID rules. @Transactional on a method makes Spring open a transaction before it runs and commit when it returns normally. Rollback : by default Spring rolls back on unchecked exceptions ( RuntimeException and Error ), not on checked exceptions.