【异常】MyBatis-Plus因@TableId错误使用,导致主键未生成,SQL异常提示SQLException: Field ‘id‘ doesn‘t have a default value

一、异常内容

org.springframework.dao.DataIntegrityViolationException: 
### Error updating database.  Cause: java.sql.SQLException: Field 'crash_id' doesn't have a default value
### The error may exist in com/xxx/terminal/mapper/CrashLogMapper.java (best guess)
### The error may involve com.desaysv.apb.terminal.mapper.CrashLogMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO t_crash_log_main  ( log_type, project_name, create_time, upload_time, soft_ware_version, log_hash, device_id, fingerprint, package_name, repeat_f

你可能感兴趣的:(004,-,数据库,sql,mybatis,java,mysql,spring,boot)