SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@ec18b38] was not registered for synchronization because synchronization is not active JDBC Connection [com.mysql.jdbc.JDBC4Connection@749d2bf5] will not be managed by Spring原因:出现报错就是因为某个字段是null,而数据库设计的时候,这个字段不能为null,所以报错,所以只需要传个数据给该字段就行。


![SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@ec18b38] was not registered for syn SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@ec18b38] was not registered for syn](http://www.mshxw.com/aiimages/31/603116.png)
