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

问个事务相关

  •  
  •   zxc1234 · Apr 4, 2020 · 1773 views
    This topic created in 2255 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   ·   2530 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:51 · PVG 23:51 · LAX 08:51 · JFK 11:51
    ♥ Do have faith in what you're doing.