File tree Expand file tree Collapse file tree
spring-boot-4/tx-seata-sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626- shardingsphere-jdbc-5.x-core-sample:集成 ShardingSphere JDBC Driver 5.5.3 使用示例
2727- spel-sample:动态从外部参数spel来切换数据源的使用示例
2828- tx-local-sample:本地事务示例项目★★★★★★必看★★★★★★
29- - tx-seata-sample:基于seata的分布式事务集成使用示例
29+ - tx-seata-sample:基于seata的分布式事务集成使用示例,Seata Server 与数据库的准备、关键配置和本地运行步骤见
30+ [ 模块 README] ( ./spring-boot-4/tx-seata-sample/README.md )
3031
3132## Spring Boot 3(` spring-boot-3/ ` )
3233
Original file line number Diff line number Diff line change 44示例把订单(order)、账户(account)、商品库存(product)拆分到多个数据源中,下单流程在一个全局事务里跨库写入,
55任意一步失败时由 Seata 通过各库的 ` undo_log ` 整体回滚。
66
7+ 本模块暂不支持 GraalVM native image:Seata 2.6.0 在 Spring AOT 处理阶段就会失败
8+ ([ apache/incubator-seata #8303 ] ( https://github.com/apache/incubator-seata/issues/8303 ) ),因此未纳入 Native Test CI,
9+ 详见 [ GraalVM Native Image] ( ../../docs/graalvm-native-image.md ) 。
10+
711## 技术栈
812
913| 组件 | 版本 |
1014| --- | --- |
1115| Spring Boot | 4.1.1 |
12- | dynamic-datasource-spring-boot4-starter | 4.5.0 |
16+ | dynamic-datasource-spring-boot4-starter | 4.6.0(取自根 ` pom.xml ` 的 ` ds.version ` ) |
1317| Seata(` seata-spring-boot-starter ` / ` seata-server ` ) | 2.6.0,客户端与服务端版本对齐 |
1418| PostgreSQL(默认 profile) | ` postgres:18.6-trixie ` |
1519| MySQL(可选 profile) | ` mysql:26.7.0-oraclelinux9 ` |
@@ -46,9 +50,11 @@ seata:
4650 vgroup-mapping :
4751 # key 与上面的 tx-service-group 对应
4852 my_test_tx_group : default
53+ # Seata 客户端回退的默认分组,AOT 处理时可能取到它,同样映射到 default
54+ default_tx_group : default
4955 grouplist :
50- # 示例使用 file 注册中心,seata-server 地址只能写在 grouplist 里
51- default : 110.40.253.205 :8091
56+ # 示例使用 file 注册中心,seata-server 地址只能写在 grouplist 里;单元测试会改指向测试容器
57+ default : localhost :8091
5258 config :
5359 type : file
5460 registry :
You can’t perform that action at this time.
0 commit comments