org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column ‘id’
java.sql.SQLException: Invalid value for getInt() - ‘7f08610a997ea062dd346c3’
产生原因:
- 类型不匹配,数据库使用varchar,javaBean使用的是Integer
- 使用了含参构造方法,没有添加无参构造方法
org.springframework.dao.TransientDataAccessResourceException: Error attempting to get column ‘id’
java.sql.SQLException: Invalid value for getInt() - ‘7f08610a997ea062dd346c3’
产生原因: