nonoName
V2EX  ›  问与答

springboot+mybatis 通过 example 查询出现 TooManyResultsException

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

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

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

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

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

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