在使用mybatis时由于联合了其他的表,用到了resultMap,之后外加association这一项。可是在替换对应字段的位置上加上association总是报错。

解决:resultMap的中顺序必须是

<resultMap>

  <id></id>

  <result />

  ......

  <association />

  .....

  <collection/>

</resultMap>

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-07-16
  • 2021-08-21
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案