The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collectio

来源:互联网 发布:罗技g502 mac 编辑:程序博客网 时间:2024/04/28 16:54

Mybatis添加一对一关联查询的时候,就是添加association标签的时候出现这个错误。

The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collection*,discriminator?)".

原图
这里写图片描述

查找了半天,然后发现是顺序导致了The content of element type “resultMap” must match “(constructor?,id*,result*,association*,collectio
这个错误

修改一下顺序即可
修改后的图片
这里写图片描述

0 1
原创粉丝点击