Home  >  Q&A  >  body text

java - MySQL fabric中,使用mybatis的问题

在批量插入的时候获取主键值,返回来的主键值和实际插入值不一样,但是不用fabric又能得到正确的数据,请问是什么原因?如何解决?

ringa_leeringa_lee2711 days ago439

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 10:53:48

    The reason has been found. The MySQL underlying connection driver does not support getAutoIncrement in the Fabric cluster environment.

    reply
    0
  • Cancelreply