org.springframework.dao.DataIntegrityViolationException


前台報的錯誤信息:

 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),整數位只能有兩位,添加的時候,輸入了錯誤的數字。
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM