Transactions, Spring.
let us focus only on the annotation part. We need to include 2 annotations for this to take effect @EnableTransactionManagement annotation is usually on the main class. Adding @EnableTransactionManagement annotation creates a PlatformTransactionManager for you — with its JDBC auto-configurations.