---
title: "Manual close is not allowed over a Spring managed SqlSession"
author: "zhb8015"
date: "2013-10-12T11:04:50Z"
tags: ["spring3", "sqlsession"]
categories: ["企业架构"]
slug: "manual-close-is-not-allowed-over-a-spring-managed-sqlsession"
draft: false
lastmod: "2013-10-12T11:04:50Z"
id: 1955678
url: "https://peter8015.iteye.com/blog/1955678"
---

简介：  spring3+mybatis3集成时报错消息，只有在日志是debug级别才能显示。

 

        Manual close is not allowed over a Spring managed SqlSession

 

原因应该是重复关闭数据连接，可以认为是warning.

 

 

参考文章：

[http://code.google.com/p/mybatis/issues/detail?id=778](http://code.google.com/p/mybatis/issues/detail?id=778)

[http://lizhizhang.iteye.com/blog/1917807](http://lizhizhang.iteye.com/blog/1917807)