mybatis中使用resultMap返回一个对象中,存在List集合,其泛型是普通的数据类型

写法如下:

<collection property="objectPropertyName" ofType="dataType" >
        <constructor>
<arg column="column_name"/>
</constructor>
</collection>
posted @ 2019-08-17 18:47  DarkFu  阅读(9965)  评论(0)    收藏  举报