这个问题在于你查询sql返回结果是多个值、一个集合,但是你在service的实现层的dao都调用了.get方法。而是应该使用.getlist方法等。
相关文章
- 04-12Expected one result (or null) to be returned by selectOne(), but found 2
- 04-12Expected one result (or null) to be returned by selectOne(), but found: 2
- 04-12报错:Expected one result (or null) to be returned by selectOne(), but found: 6
- 04-12MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2