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

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

 

posted @ 2018-05-30 19:55  libaylor  阅读(13062)  评论(0编辑  收藏  举报