MyBatis规定的顺序,要按照规则来写,显示id,然后是result,然后association,最后是collection,这个是在写映射文件的时候没有把他们的顺序写对,应该调整一下顺序就可以成功了,

 

 

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

调整完association和collection的位置顺序就可以了

 

相关文章: