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 synchronization because synchronization is not active 
JDBC Connection [com.mysql.jdbc.JDBC4Connection@749d2bf5] will not be managed by Spring

原因:出现报错就是因为某个字段是null,而数据库设计的时候,这个字段不能为null,所以报错,所以只需要传个数据给该字段就行。


版权声明:本文为qq_50504109原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。