[Bug日记0004]IDEA中操作数据库插入数据报错异常(博客项目插入评论):Out of range value for column 'article_id' at row
IDEA中操作数据库插入数据报错异常(博客项目插入评论)
bug1
问题
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Out of range value for column 'article_id' at row 1
原因
字面意思是插入的数据值超过article_id列的范围
解决方案
查看对应的数据库字段类型并修正
article_id字段将int修改为bigint