Error updating database. Cause: java.sql.SQLException: Incorrect integer value: ‘’ for column ‘xxx’ at row 1 ### The error may exist in com/xx/xx/mapper/xxxxMapper.java (best guess) ### The error may involve com.xx.xx.mapper.————报错信息
Error updating database. Cause: java.sql.SQLException: Incorrect integer value: '' for column 'xxx' at row 1 ### The error may exist in com/xx/xx/mapper/xxxxMapper.java (best guess) ### The error may involve com.xx.xx.mapper
分析原因:Cause: java.sql.SQLException: Incorrect integer value: ‘’ for column ‘xxx’ at row 1 ; uncategorized SQLException; 意思是传入的该数据不合规则
解决方法:
仔细检查自己的数据库和实体类,看该字段各项属性设置有没有问题——数据类型、长度、名字等能否对上前端传来的数据,一般就是这里出问题了