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

错误代码:

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

翻译:

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

错误示列 

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

The content of element type

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

The content of element type

原意就是xml的顺序需要与实体类一致 


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

你可能感兴趣的:(Java后端,MyBatis,BUG)