nonoName
V2EX  ›  问与答

springboot+mybatis 通过 example 查询出现 TooManyResultsException

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

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

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

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

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

    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5139 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 131ms · UTC 07:18 · PVG 15:18 · LAX 23:18 · JFK 02:18
    ♥ Do have faith in what you're doing.