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

写法如下:

<collection property="objectPropertyName" ofType="dataType" >
        <constructor>
<arg column="column_name"/>
</constructor>
</collection>

猜你喜欢

转载自www.cnblogs.com/darkfu/p/11369855.html