Expected one result (or null) to be returned by selectOne(), but found 2 这个问题在于你查询sql返回结果是多个值、一个集合,但是你在service的实现层的dao都调用了.get方法。而是应该使用.getlist方法等。