MyBatis在查询数据时,查询涉及到多张表,且查询的对象存在集合的属性时,如下查询会报错:Expected one result (or null) to be returned by selectOne(), but found: 2
<resultMap id="classesMap" type="cn.jam.entity.Classes">
<id column="c.id" property="id"/>
<result column="c.name" property="name"/>
<collection