一个请求创建了2次SqlSession会话

生生世世杀 发布于 2017/12/15 17:01
阅读 1K+
收藏 0

【领华为电脑包】容器化时代到来!跳转机分配问题终于“有救”了!>>>

[org.mybatis.spring.SqlSessionUtils]Creating a new SqlSession
[org.mybatis.spring.SqlSessionUtils]Creating a new SqlSession
[org.mybatis.spring.SqlSessionUtils]SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@a454164] was not registered for synchronization because synchronization is not active
[org.mybatis.spring.SqlSessionUtils]SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@48c81180] was not registered for synchronization because synchronization is not active
[org.mybatis.spring.transaction.SpringManagedTransaction]JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@7d50c013] will not be managed by Spring
[org.mybatis.spring.transaction.SpringManagedTransaction]JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@528678c1] will not be managed by Spring
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]==>  Preparing: SELECT sys_state FROM sys_sxyx WHERE sys_type =? 
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]==>  Preparing: SELECT sys_state FROM sys_sxyx WHERE sys_type =? 
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]==> Parameters: news(String)
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]==> Parameters: news(String)
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]<==      Total: 1
[org.mybatis.spring.SqlSessionUtils]Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@a454164]
[sxyx.hzxf.dao.NewsMapper.ckeckNewsSys]<==      Total: 1
[org.mybatis.spring.SqlSessionUtils]Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@48c81180]

加载中
0
CodeZero
CodeZero

肯定是某个地方重复调用了

返回顶部
顶部