今天报了一个新的错,原因是实体类中一个字段没有写进映射中:

就是图中注销的那一个,这个是后来错误重现时候注销的;

【报错】MySQLIntegrityConstraintViolationException:Column cannot be null

【报错】MySQLIntegrityConstraintViolationException:Column cannot be null

console中报的错:

【报错】MySQLIntegrityConstraintViolationException:Column cannot be null

【报错】MySQLIntegrityConstraintViolationException:Column cannot be null


把没有写进mapper.xml文件的deleted属性和deleted表的列的映射写进去就好了;











相关文章: