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>

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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM