Mybatis:Statement returned more than one row, where no more than one was expected
问题描述:在mybatis多对多查询中,出现了以下错误Statement returned more than one row, where no more than one was expected翻译:语句返回多行,其中不期望超过一行问题分析:出现这个问题,需要检查自己的多对多查询语句,以我的错误为例观察上图,是因为我需要查询是一对多,返回的结果是多条的,所以javaType应该指定为集合类型List.class如下:...