Mybatis XML 新增异常

异常信息

1
2
3
4
5
6
7
8
org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: java.sql.SQLException: Field 'id' doesn't have a default value
### The error may exist in file [xxx.xml]
### The error may involve xxxMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into xxx create_time ) values ( ?, ?, ?, ?, ? )
### Cause: java.sql.SQLException: Field 'id' doesn't have a default value
; Field 'id' doesn't have a default value; nested exception is java.sql.SQLException: Field 'id' doesn't have a default value