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