报错 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"/>