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


Please Help Members By Posting Answers For Below Questions

How can you inject java collection in spring?

518


What is lazy class?

490


What is difference between @controller and @restcontroller in spring?

556