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