You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot分布式事务报错:java.lang.ClassNotFoundException: javax.transaction.TransactionManager

分布式事务实现遇阻,Demo应用复现问题

我最近在尝试实现分布式事务时踩了不少坑,遇到了诸多难以解决的错误,于是特意编写了一个Demo应用来复现并阐述我碰到的问题。

以下是我Demo项目中pom.xml文件里的相关依赖片段:

<dependencies>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>5.0.2.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>...</version>
    </dependency>
</dependencies>

内容的提问来源于stack exchange,提问作者Mohammed Nosirat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 09:40:24