Cause: java.sql.BatchUpdateException: Field 'XXX' doesn't have a def 解决
测试环境报错,Cause: java.sql.BatchUpdateException: Field 'bind_status' doesn't have a def,错误大意是 无效的"bind_status"字段没有默认值。检查了下 数据库,发现有人改了数据库 加了bind_status字段由于bind_status字段不能为null,而程序中mybatis的insert语句少了这个字段,导致这个错误的原因。
在mybatis加上后,重新打包发布测试环境就行了。