首页 > 技术文章 > mybatis 中collection中需要 open close separator

huiandong 2018-12-04 15:50 原文

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>

顺序来排列

 

推荐阅读