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

错误代码:

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

翻译:

元素类型“resultMap”的内容必须匹配“(构造函数?、id*、结果*、关联*、集合*、鉴别器?)”。

错误示列 

错误的xml配置顺序   *Mapper.xml

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

正确的配置顺序: *Mapper.xml

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


【原创文章】原文地址:https://blog.csdn.net/qq_43227967/article/details/88812494