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