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>

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

 

 

posted on 2020-11-25 22:09  别先生  阅读(2357)  评论(0编辑  收藏  举报