The relationship between transaction and database connection is not one-to-one

1 One connection can start multiple transactions, such as connection pool, which is the most obvious connection reuse.
2 In a transaction, two or more connections can be involved, which is the XA driver, and even transactions across different databases.

Guess you like

Origin blog.csdn.net/java2000_net/article/details/5435445