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

配置resultMap时提示以下异常提示:

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

这里写图片描述

主要原因就是resultMap的属性配置得按照constructor、id、result、association、collection、discriminator的顺序。

这里写图片描述

猜你喜欢

转载自blog.csdn.net/loongshawn/article/details/78583701