Ambiguous collection type for property ‘DrugInfos‘. You must specify ‘javaType‘ or ‘resultMap‘.
程序员文章站
2022-07-15 13:09:03
...
<collection property="DrugInfos" ofType="com.entity.DrugInfo">
<id property="id" column="rid"/>
<result property="name" column="name"/>
<result property="logo" column="logo"/>
<result property="supplier" column="supplier"/>
<result property="producttime" column="producttime"/>
<result property="warrenty" column="warrenty"/>
<result property="bianhao" column="bianhao"/>
<result property="price" column="price"/>
<result property="maijia" column="maijia"/>
<result property="stock" column="stock"/>
</collection>
修改xml文件
<collection property="DrugInfos" ofType="com.entity.DrugInfo" javaType="java.util.List">
<id property="id" column="rid"/>
<result property="name" column="name"/>
<result property="logo" column="logo"/>
<result property="supplier" column="supplier"/>
<result property="producttime" column="producttime"/>
<result property="warrenty" column="warrenty"/>
<result property="bianhao" column="bianhao"/>
<result property="price" column="price"/>
<result property="maijia" column="maijia"/>
<result property="stock" column="stock"/>
</collection>
记录一下
上一篇: 记录一次:Ambiguous collection type for property ‘ adds‘. You must specify ‘javaType‘ or ‘resultMap‘.错误;
推荐阅读
-
Ambiguous collection type for property ‘ ‘. You must specify ‘javaType‘ or ‘resultMap‘解决方案
-
记录一次:Ambiguous collection type for property ‘ adds‘. You must specify ‘javaType‘ or ‘resultMap‘.错误;
-
Ambiguous collection type for property ‘DrugInfos‘. You must specify ‘javaType‘ or ‘resultMap‘.
-
Mybatis Ambiguous collection type for property ‘xxx‘. You must specify ‘java Type‘ or ‘resultMap‘.
-
Mybatis Ambiguous collection type for property ‘xxx‘. You must specify ‘java Type‘ or ‘resultMap‘.
-
Mybatis Ambiguous collection type for property ‘xxx‘. You must specify ‘java Type‘ or ‘resultMap‘.