How would you enable transactions in spring and what are their benefits?
Answer / 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 |
What is advice in spring?
What is the use of spring boot application? : Spring Boot
What is difference between hibernate and spring data jpa?
How to integrate spring and hibernate using hibernatedaosupport?
What are ways to inject dependency in spring?
How to create an applicationcontext in a java program?
What is meant by rmi?
Is spring boot a mvc?
What is @configuration in spring?
Can we send an object as a response to the controller’s handler method?
What is difference between spring and spring mvc?
What is default isolation level in spring?