mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
修改错别字
This commit is contained in:
parent
aee8b0eb4b
commit
8630904bc7
@ -107,7 +107,7 @@ public void doSomething(){
|
|||||||
DataSourceKey.use("ds2");
|
DataSourceKey.use("ds2");
|
||||||
Db.updateBySql("update ...");
|
Db.updateBySql("update ...");
|
||||||
}finally{
|
}finally{
|
||||||
DataSourceKey.clear()
|
DataSourceKey.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
//抛出异常
|
//抛出异常
|
||||||
@ -138,7 +138,7 @@ Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式,为用户打
|
|||||||
mybatis-flex:
|
mybatis-flex:
|
||||||
seata-config:
|
seata-config:
|
||||||
enable: true
|
enable: true
|
||||||
seata-mode: XA # 支持 xa 或者 ta
|
seata-mode: XA # 支持 XA 或者 AT
|
||||||
```
|
```
|
||||||
- XA:指的是: 分布式事务协议(X/Open Distributed Transaction Processing),它是一种由 X/Open 组织制定的分布式事务标准,
|
- XA:指的是: 分布式事务协议(X/Open Distributed Transaction Processing),它是一种由 X/Open 组织制定的分布式事务标准,
|
||||||
XA 使用两阶段提交(2PC,Two-Phase Commit)来保证所有资源同时提交或回滚任何特定的事务。
|
XA 使用两阶段提交(2PC,Two-Phase Commit)来保证所有资源同时提交或回滚任何特定的事务。
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
mybatis-flex:
|
mybatis-flex:
|
||||||
seata-config:
|
seata-config:
|
||||||
enable: true #启动seata
|
enable: true #启动seata
|
||||||
seata-mode: XA #xa或者ta
|
seata-mode: XA #XA或者AT
|
||||||
datasource:
|
datasource:
|
||||||
accountdb:
|
accountdb:
|
||||||
url: jdbc:mysql://127.0.0.1:3306/db_account
|
url: jdbc:mysql://127.0.0.1:3306/db_account
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user