• 请不要在回答技术问题时复制粘贴 AI 生成的内容
muyunn
V2EX  ›  程序员

spring 开启 SERIALIZABLE 级别事务后其他事务还是可以查询

  •  
  •   muyunn · May 17, 2020 · 1272 views
    This topic created in 2212 days ago, the information mentioned may be changed or developed.

    @Transactional(isolation=Isolation.SERIALIZABLE) @Override public String submit(Tr tr ) { 1:查询 or 表数据 2:更改 or 表数据 3:把修改记录插入 br 表 } 为什么我开启了这个级别的事务,当第一个线程还没有把 submit 方法执行完的时候,第二个线程执行 submit 方法可以查询 or 表数据,并且也可以执行第三步

    原问题链接 https://segmentfault.com/q/1010000007600770

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3006 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:11 · PVG 15:11 · LAX 00:11 · JFK 03:11
    ♥ Do have faith in what you're doing.