https://github.com/dtm-labs/dtmcli-java-sample
https://github.com/dtm-labs/dtmcli-java-sample
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dtm-labs/dtmcli-java-sample
- Owner: dtm-labs
- License: mit
- Created: 2021-08-22T06:11:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T08:42:05.000Z (almost 3 years ago)
- Last Synced: 2025-04-28T19:14:54.070Z (9 months ago)
- Language: Java
- Size: 55.7 KB
- Stars: 13
- Watchers: 9
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### 快速开始
#### 安装运行dtm
参考[dtm安装运行](https://dtm.pub/guide/install.html)
#### 运行示例
运行服务
```
mvn package && java -jar target/dtmcli-java-sample-0.0.1-SNAPSHOT.jar
```
触发成功的TCC事务
```
curl localhost:8081/tccBarrier
```
触发回滚的TCC事务
```
curl localhost:8081/tccBarrierError
```