mybatis collection ofType和javaType区别

文章目录

  • mybatis collection ofType和javaType区别

mybatis collection ofType和javaType区别

  • ofType 用于多级联映射
  • javaType用于一对一映射

用的不对的时候会报异常

returned more than one row, where no more than one was expected

你可能感兴趣的:(spring)