mybatis 中collection中需要 open close separator

mybatis 中collection中需要 open close separator

<result property="openFactories" column="open_factories" />

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

mybatis 错误

The content of element type "resultMap" must match 

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

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

需要按照

<id>

<result>

<association>

<collection>

顺序来排列

 

posted @ 2018-12-04 15:50  uuhh  阅读(1072)  评论(0)    收藏  举报