adspace
How would you enable transactions in spring and what are their benefits?
Answer Posted / Shiv Kumar
To enable transactions in Spring, configure your beans with transactional attributes. This can be done at method-level using @Transactional annotation on the service layer methods or at class-level by defining a bean as transactional. Benefits of transactions include data consistency, isolation, durability, and rollback support.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers