Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1b2af29f] Creating a new SqlSession
时间: 2024-01-31 16:11:14 浏览: 271
Closing non transactional SqlSession means that the SqlSession object is being closed without any ongoing transaction. In the context of MyBatis, SqlSession is responsible for managing the connection with the database and executing SQL statements.
When you see the message "Closing non transactional SqlSession", it indicates that the current SqlSession is being closed after executing some SQL statements, but there was no explicit transaction started or committed. This means that the changes made in the session will not be persisted in the database.
Creating a new SqlSession means that a new instance of SqlSession is being created. This is typically done when you need to perform a new set of database operations or when you want to isolate the changes made in one session from another session.
In summary, the message indicates that a non-transactional SqlSession is being closed, and a new SqlSession is being created for further database operations.
阅读全文