首页 > 其他 > 详细

Data truncation: Out of range value for column 'id' at row 1 ### The

时间:2017-05-09 20:14:58      阅读:1434      评论:0      收藏:0      [点我收藏+]
org.springframework.dao.DataIntegrityViolationException: 
### Error updating database.  Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column ‘id‘ at row 1
### The error may involve com.baomidou.springwind.mapper.ActivityMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO activity   ( id,  title,  tag,  content,      `state`,    add_time,  update_time,  places,  deposit,  full_price )  VALUES   ( ?,  ?,  ?,  ?,      ?,    ?,  ?,  ?,  ?,  ? )
### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column ‘id‘ at row 1
; SQL []; Data truncation: Out of range value for column ‘id‘ at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column ‘id‘ at row 1

 

 

解决办法: 数据库 主键id 类型由int改为 bigInt

Data truncation: Out of range value for column 'id' at row 1 ### The

原文:http://www.cnblogs.com/thinkingandworkinghard/p/6832334.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!