时间:2021-07-01 10:21:17 帮助过:28人阅读
而在property标签中,我们要写的是属性,而这个属性并不是这个类型,二十这个属性名,我的是itemsCustom,将property标签中的属性名修改正确后即解决问题,代码如下:
<resultMap type="OrderDetailCustom" id="OTM"> <id column="id" property="id"/> <result column="items_num" property="items_num"/> <result column="orders_id" property="orders_id"/> <result column="items_id" property="items_id"/> <association property="itemsCustom" javaType="ItemsCustom"> <result column="name" property="name"/> <result column="createtime" property="createtime"/> </association> </resultMap> |
菜鸟在努力,希望我踩过的坑,能成为诸位bug兄的垫脚石!
Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ItemsCustom' in 'class com.pojo.OrderDetailCustom
标签:sts xpl nbsp nat ping obj iat ssr def