I remember that spring transaction management defaults to false, but there seems to be a conflict between many database pools, including druid, autocommit, which defaults to true,. In addition, autocommit, can also be configured in the configuration of the underlying database, such as mysql, so which of the three has the highest priority, that is, which setting can override the others?
in addition, there are two kinds of understanding of autocommit here
1) when the whole transaction is about to end, the transaction management AOP automatically commits
2) when each sql statement is executed, it commits automatically
which is the so-called autocommit in the defaultAutoCommit and spring transaction management of the database pool?