mybatis 中collection中需要 open close separator

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

mybatis 错误

The content of element type "resultMap" must match 

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

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

需要按照

<id>

<result>

<association>

<collection>

顺序来排列

 

相关文章: