SqlSession 同步为注册,因为同步未激活

Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7d620db9] was not registered for synchronization because synchronization is not active

网上方法很多,没找到答案,最后发现自己ip地址是动态的,连本地库的时候用的以前的地址,改后就好了。

原文地址:https://www.cnblogs.com/yanan7890/p/8134535.html