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

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

转载:https://blog.csdn.net/chenxing1990/article/details/79649958 

mybatis 错误

The content of element type "resultMap" must match 

 "(constructor?,id*,result*,association*,collection*,discriminator?)".

造成的原因是<resultMap>标签中

需要按照

<id>

<result>

<association>

<collection>

顺序来排列
 

猜你喜欢

转载自blog.csdn.net/xiao__jia__jia/article/details/85535083