首页 > 编程语言 > 详细

org.springframework.dao.DataIntegrityViolationException

时间:2018-04-02 19:03:34      阅读:225      评论:0      收藏:0      [点我收藏+]

前台报的错误信息:

 org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; SQL [insert into "GOODS" ("GOODSNAME", "BILLSTATUS", "GOODSDISTRICT", "GOODSPRICE", "GOODSCOUNT", "CREATIONTIME", "ID") values (?, ?, ?, ?, ?, ?, ?)]; nested exception is org.hibernate.exception.DataException: Could not execute JDBC batch update 
 
报错原因:数据库里的GOODSPRICE字段为number(4,2),整数位只能有两位,添加的时候,输入了错误的数字。
 

org.springframework.dao.DataIntegrityViolationException

原文:https://www.cnblogs.com/goodgo0study/p/8696153.html

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