<resultMap type="Answer" id="answer">
<id property="id" column=""/>
<result property="answer" column=""/>
<collection property="oid" ofType="int">
<constructor>
<arg column=""/>
</constructor>
</collection>
<collection property="name" ofType="java.lang.String"> <constructor>
<arg column=""/>
</constructor>
</collection>
</resultMap>
通过Integer和String的构造函数注入,具体的字段名称自己对好入座
mybatis 对象中属性 包含List<String>这种一对多映射怎么处理
最新推荐文章于 2024-05-16 11:30:18 发布