mybatis开启事务
1 | Fetched SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@78f3fadc] from current transaction |
mybatis没有开启事务
1 | Creating a new SqlSession |
By default, MySQL runs with autocommit mode enabled. This means that as soon as you execute a statement that updates (modifies) a table, MySQL stores the update on disk to make it permanent. The change cannot be rolled back.
文章链接 https://fangzongzhou.github.io/2018/08/20/计算机/技术栈/MYSQL/事务/