【每日小bug】mybatis plus id注解错误导致的问题
发布时间:2024年01月13日
插入数据 id不为自增

指定了主键,没有指定自增。会导致出现


修改如上
报错 Data truncation: Out of range value for column ‘id’ at row 1

数据库是bigint,java中是Integer。

修改如上
文章来源:https://blog.csdn.net/ganjiee0007/article/details/135568680
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!