Closing non transactional SqlSession [org. apache. ibatis.session. defaults
时间: 2024-03-01 09:48:30 浏览: 176
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@12345678] means that the SqlSession object is being closed without any ongoing transaction.
In the MyBatis framework, a SqlSession represents a connection to the database and provides methods for executing SQL statements. By default, a SqlSession is non-transactional, which means that each statement is executed in its own individual transaction.
When a non-transactional SqlSession is closed, any pending changes or uncommitted transactions will be discarded. It is important to properly manage the lifecycle of a SqlSession to ensure that all changes are committed or rolled back before closing the session.
阅读全文