V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
zxc1234
V2EX  ›  程序员

问个事务相关

  •  
  •   zxc1234 · Apr 4, 2020 · 1698 views
    This topic created in 2215 days ago, the information mentioned may be changed or developed.

    有两个方法,a 方法,b 方法

    如果 a 方法调用注解了事务的 b 方法,那么事务还会生效吗

    为什么呢

    3 replies    2020-04-04 21:29:47 +08:00
    hantsy
        1
    hantsy  
       Apr 4, 2020
    怎么处理,取决于 Transacational 的 propagation 属性( Spring )或者 TxType ( CDI,Jakarta EE )。
    仔细阅读,https://docs.spring.io/spring/docs/5.2.x/spring-framework-reference/data-access.html#transaction
    kosmosr
        2
    kosmosr  
       Apr 4, 2020
    google 事务传播机制
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:46 · PVG 17:46 · LAX 02:46 · JFK 05:46
    ♥ Do have faith in what you're doing.