Broadcom-VMware
2V0-72.22 · Question #37
Which two are required to use transactions in Spring? (Choose two.)
The correct answer is A. Add @EnableTransactionManagement to a Java configuration class. B. Annotate a class, an interface, or individual methods requiring a transaction with the. See the full explanation below for the reasoning.
Question
Which two are required to use transactions in Spring? (Choose two.)
Options
- AAdd @EnableTransactionManagement to a Java configuration class.
- BAnnotate a class, an interface, or individual methods requiring a transaction with the
- CA class must be annotated with @Service and @Transaction.
- DA class requiring a transaction must implement the TransactionInterceptor interface.
- EWrite a Spring AOP advice to implement transactional behavior.
How the community answered
(45 responses)- A80% (36)
- C7% (3)
- D11% (5)
- E2% (1)
Community Discussion
No community discussion yet for this question.