报错 Caused by: org.xml.sax.SAXParseException: 元素类型为 “id“ 的内容必须匹配 “EMPTY“。
报错 Caused by: org.xml.sax.SAXParseException: 元素类型为 “id” 的内容必须匹配 “EMPTY”。
<id property="goods.goodsId" column="goods_id"></id>
<!-- 普通字段与属性的映射 -->
<result property="goods.title" column="title"></result>
<result property="goods.subTitle" column="sub_title"></result>
<result property="goods.originalCost" column="original_cost">
</result>
<result property="goods.currentPrice" column="current_price">
</result>
<result property="goods.discount" column="discount"></result>
<result property="goods.isFreeDelivery"
column="is_free_delivery"></result>
<result property="goods.categoryId" column="category_id">
</result>
<result property="categoryName" column="category_name">
</result>
改成
<id column="goods_id" property="goods.goodsId"/>
<!-- 普通字段与属性的映射 -->
<result property="goods.title" column="title"/>
<result property="goods.subTitle" column="sub_title"/>
<result property="goods.originalCost" column="original_cost"/>
<result property="goods.currentPrice" column="current_price"/>
<result property="goods.discount" column="discount"/>
<result property="goods.isFreeDelivery" column="is_free_delivery"/>
<result property="goods.categoryId" column="category_id"/>
<result property="categoryName" column="category_name"/>
原文地址:https://blog.csdn.net/weixin_48616345/article/details/143963829
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!