Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@44aa015e] Creating a new SqlSession
时间: 2023-08-26 14:16:58 浏览: 239
引用、、异常", "报错Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1c45522b"
问题: Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@44aa015e Creating a new SqlSession
回答: 这个错误信息"Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@44aa015e Creating a new SqlSession"表明你正在尝试关闭一个非事务性的SqlSession,并且尝试创建一个新的SqlSession。这种错误通常发生在SqlSession没有正确地被关闭或释放之前,又试图创建一个新的SqlSession的情况下。要解决这个问题,你需要确保在使用完SqlSession后调用close()方法来关闭它,而不是创建一个新的SqlSession。这样可以避免资源泄漏和不必要的错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [解决Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@38e...](https://blog.csdn.net/LiloveWen/article/details/109100803)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1c45522b]](https://blog.csdn.net/qq_54928486/article/details/124607337)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文