SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@8417c2] was not registered for synchronization because synchronization is not active JDBC Connection [HikariProxyConnection@28497209 wrapping com.mysql.cj.jdbc.ConnectionImpl@1cfff46] will not be managed by Spring ==> Preparing: select * from User where email = ? and password = ? ==> Parameters: null, null <== Total: 0 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@8417c2]
时间: 2024-04-22 21:25:47 浏览: 546
mybaits非配置原因,导致SqlSession was not registered for synchronization异常
5星 · 资源好评率100%
sqlsession [org.apache.ibatis.session.defaults.defaultsqlsession@8417c2]未注册进行同步,因为同步未处于活动状态。JDBC连接[HikariProxyConnection@28497209包装com.mysql.cj.jdbc.ConnectionImpl@1cfff46]将不会由Spring管理。==> 准备中:select * from User where email = ? and password = ?==> 参数:null,null<== 总计:0关闭非事务性SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@8417c2]
阅读全文