query did not return a unique result: 2错误的发生

org.springframework.dao.IncorrectResultSizeDataAccessException: query did not return a unique result: 2; nested exception is javax.persistence.NonUniqueResultException: query did not return a unique result: 2

因为查询结果是多条数据,接收查询结果的却是个对象。

猜你喜欢

转载自www.cnblogs.com/libaylor/p/9112992.html
今日推荐