First, the theoretical study affairs
Use database transactions to achieve application transaction control
1. Requirement: need the same transaction with the same database connection.
2.
3. Distributed Transaction JTA
Two, spring transaction modeling
1.
2.
Three, spring transaction processing