https://github.com/dtm-labs/dtmcli-java-spring-sample
dtmcli-java-spring-sample
https://github.com/dtm-labs/dtmcli-java-spring-sample
Last synced: 4 months ago
JSON representation
dtmcli-java-spring-sample
- Host: GitHub
- URL: https://github.com/dtm-labs/dtmcli-java-spring-sample
- Owner: dtm-labs
- License: mit
- Created: 2022-04-27T05:37:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T08:47:50.000Z (over 3 years ago)
- Last Synced: 2025-01-02T17:24:00.180Z (about 1 year ago)
- Language: Java
- Size: 14.6 KB
- Stars: 1
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dtmcli-java-spring-sample
## Start dtm
For how to start dtm, please refer to [github.com/dtm-labs/dtm](https://github.com/dtm-labs/dtm)
Specify the following configuration: (use command `dtm -c conf.yml` or `go run main.go -c conf.yml`)
``` yml
MicroService:
Driver: 'dtm-driver-springcloud' # name of the driver to handle register/discover
Target: '{"Addr":"127.0.0.1:8848,127.0.0.1:8848","Type":"nacos", "InstanceConfig":{"ServiceName":"dtmService","Enable":true,"Healthy":true,"Weight":10},"ClientConfig":{"NamespaceId":"c3dc917d-906a-429d-90a9-85012b41014e","UserName":"nacos","Password":"nacos","NotLoadCacheAtStart":true}}'
EndPoint: 'localhost:36789'
```
## Start sample
``` bash
mvn exec:java -Dexec.mainClass="pub.dtm.sample.DtmcliJavaSampleV2Application"
```
## Fire a request
``` bash
curl localhost:8888/testSagaMs
curl localhost:8888/tccms
```