What are the implementation methods of spring transaction?

Alibaba cloud Q & A 2022-02-13 05:23:03 阅读数:228

implementation methods spring transaction

A detailed description ?




Take the answer 1:

(1) Programming transaction management is based on POJO Is the only choice . We need to call in the code beginTransaction()、commit()、rollback() And other methods related to transaction management , This is programmatic transaction management . (2) be based on TransactionProxyFactoryBean Declarative transaction management (3) be based on @Transactional Declarative transaction management (4) be based on Aspectj AOP Configure transactions


copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130523020810.html