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
因为查询结果是多条数据,接收查询结果的却是个对象。
2022-12-18 15:12:21
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
因为查询结果是多条数据,接收查询结果的却是个对象。
下一篇:修改访问的后缀contant