nonoName
V2EX  ›  问与答

springboot+mybatis 通过 example 查询出现 TooManyResultsException

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

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

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

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

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   878 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    ♥ Do have faith in what you're doing.