nonoName
V2EX  ›  问与答

springboot+mybatis 通过 example 查询出现 TooManyResultsException

  •  
  •   nonoName · Jan 12, 2021 · 1389 views
    This topic created in 2064 days ago, the information mentioned may be changed or developed.

    数据库中只存在一条这样的数据,甚至复现时将数据库该表清空,也会出现查询返回多条数据

    请问下有人遇到过这种情况吗,是线上发生的偶发情况

    通过主键 Id 查询,也会出现返回多条的情况,但是很难复现

    通过日志打印出的 sql 去数据库查询,查询到的也是一条

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5776 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 06:11 · PVG 14:11 · LAX 23:11 · JFK 02:11
    ♥ Do have faith in what you're doing.