When reading Spring tutorials I'm quite often coming across the @Transactional
annotation.
When I google it, I get documentation that says things like:
Comprehensive transaction support is among the most compelling reasons to use the Spring Framework. The Spring Framework provides a consistent abstraction for transaction management that delivers the following benefits:
or:
A transaction manager is the part of an application that is responsible for coordinating transactions across one or more resources. In the Spring framework, the transaction manager is effectively the root of the transaction system. Hence, if you want to enable transactions on a component in Spring, you typically create a transaction manager bean and pass it to the component.
I have no idea what they're referring to here.
Can someone explain?
@Transactional
annotation here, but what transactions are. Of course reference the use of@Transactional
would probably help your answer.