(spring data jpa)访问接口报错 : Invalid value for getInt() - '学生报名通道'

异常信息:

org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: S1009
org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Invalid value for getInt() - '学生报名通道'
com.zjxf.config.exception.GlobalException - could not execute query; nested exception is org.hibernate.exception.GenericJDBCException: could not execute query

问题已经很明显了, 对象中的字段类型错误, 我这儿 name 写了 Integer 所以报错了, 改成 String 即可.

posted @ 2020-06-07 11:35  wqkeep  阅读(677)  评论(0编辑  收藏  举报