代码生成时遇到数据完整性异常错误

内容概览
在生成代码时遇到了org.springframework.dao.DataIntegrityViolationException错误,具体表现为Field 'auto_increment' doesn't have a default value。虽然auto_increment字段以前是自增的,但这次导入时出现了问题。本文将探讨可能的原因和解决方案。
半脸
2024-05-22 16:42
评论2
生成代码导入时候出现以下错误 org.springframework.dao.DataIntegrityViolationException: cn.iocoder.yudao.module.infra.dal.mysql.codegen.CodegenColumnMapper.insert (batch index #1) failed. Cause: java.sql.BatchUpdateException: Field 'auto_in...

芋道快速开发平台 Boot + Cloud

星球已运营 4 年零 211 天

累计超过  34000+  位成员加入

6小时前

最近更新

40000+

内容数

进入星球主页