Exam4Training

Which two are required to use transactions in Spring? (Choose two.)

Which two are required to use transactions in Spring? (Choose two.)
A . Add @EnableTransactionManagement to a Java configuration class.
B . Annotate a class, an interface, or individual methods requiring a transaction with the @Transactional annotation.
C . A class must be annotated with @Service and @Transaction.
D . A class requiring a transaction must implement the TransactionInterceptor interface.
E . Write a Spring AOP advice to implement transactional behavior.

Answer: A,B

Explanation:

Reference: https://www.baeldung.com/transaction-configuration-with-jpa-and-spring

Latest 2V0-72.22 Dumps Valid Version with 60 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version