(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 即可.

原文地址:https://www.cnblogs.com/wqkeep/p/13059991.html