mybatis中使用resultMap返回一个对象中,存在List集合,其泛型是普通的数据类型
写法如下:
<collection property="objectPropertyName" ofType="dataType" >
<constructor>
<arg column="column_name"/>
</constructor>
</collection>
写法如下:
<collection property="objectPropertyName" ofType="dataType" >
<constructor>
<arg column="column_name"/>
</constructor>
</collection>