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

1、mybatis 错误,xxx.xml配置文件报这样的错误,具体错误,如下所示:

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

具体原因:造成的原因是<resultMap>标签中

需要按照

<id>

<result>

<association>

<collection>

顺序来进行排列,不然就会出现上面的错误的。

原文地址:https://www.cnblogs.com/biehongli/p/14009483.html