Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@671a5887] was not registered for synchronization because synchronization is not active
可能原因
1. 因为某个字段是null,而数据库设计的时候,这个字段不能为null
2. 数据库配置文件中的数据库用户名使用了username
spring会默认加载系统使用的环境变量,在spring.xml配置数据库用户名时,实际加载的是当前计算机的名称