问题:Spring Boot使用Spring data JPA 完成CRUD时,IDEA报错:java.sql.SQLException: Field 't_id' doesn't have a default value
原因:在entity中设置主键id为自动增长,却没有在数据库表中设置此项
java.sql.SQLException: Field 't_id' doesn't have a default value
解决方案:java.sql.SQLException: Field 't_id' doesn't have a default value
保存后重启程序,解决。

相关文章: