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

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

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

上一篇:id生成策略 id工具类


下一篇:修改访问的后缀contant