DataIntegrityViolationException SQLException

 

异常org.springframework.dao.DataIntegrityViolationException

或者是java.sql.SQLException: The value supplied cannot be converted to INTEGER.

 

可能的原因是

1、数据库中的字段格式在转换成对应的model的该字段格式时,出现错误;

2、有可能是更改了数据库字段的类型,但是数据表中的数据还未清除,导致反射到model时报错

你可能感兴趣的:(SQLException)