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

问个事务相关

  •  
  •   zxc1234 · Apr 4, 2020 · 2050 views
    This topic created in 2414 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
    hantsy
    Apr 4, 2020
    1
    怎么处理,取决于 Transacational 的 propagation 属性( Spring )或者 TxType ( CDI,Jakarta EE )。
    仔细阅读,https://docs.spring.io/spring/docs/5.2.x/spring-framework-reference/data-access.html#transaction
    kosmosr
    kosmosr
    Apr 4, 2020
    2
    google 事务传播机制
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   932 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:23 · PVG 05:23 · LAX 13:23 · JFK 16:23
    ♥ Do have faith in what you're doing.