could not read next row of results这个是什么原因啊
org.hibernate.exception.GenericJDBCException: could not read next row of results
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
完全不知道那边错了!郁闷
[解决办法]
你现在数据库里面是不是没有数据啊,所以说你要在你这个方法加上
try{}
catch (EmptyResultDataAccessException ex) {
return null;
}
你加上试试看