Transactions
@Transactional is implemented via Spring AOP: the container wraps the target bean in a proxy that, for any call to an annotated method arriving from outside the bean, begins a transaction before the method runs, commits it if the method returns normally, or rolls it back if the method throws an unchecked exception — all without the method body containing any explicit transaction-management code itself.
Intermediate5 min

