Skip to content
Snippets Groups Projects
Commit 34e09992 authored by 382673304@qq.com's avatar 382673304@qq.com
Browse files

chore

parent 7b7b8a5e
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ example int userCall.json:
```
### 3. Exec cli to send req.
`./dubbo-go-cli -h=localhost -p=20000 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"`
`./dubbo-go-cli -h=localhost -p=20001 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"`
cli-end output:
```log
......@@ -115,7 +115,7 @@ cli-end output:
2020/10/26 20:47:45 &{SubID: SubMale:false SubAge:0 JavaClassName:com.ikurento.user.SubInfo}
2020/10/26 20:47:45 connected to localhost:20000!
2020/10/26 20:47:45 connected to localhost:20001!
2020/10/26 20:47:45 try calling interface:com.ikurento.user.UserProvider.GetUser
2020/10/26 20:47:45 with protocol:dubbo
......
......@@ -96,7 +96,7 @@ user.json 同理,作为返回值不需要赋初始值,但JavaClassName字段
```
### 3. 执行请求
`./dubbo-go-cli -h=localhost -p=20000 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"`
`./dubbo-go-cli -h=localhost -p=20001 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"`
cli端打印结果:
```log
......@@ -112,7 +112,7 @@ cli端打印结果:
2020/10/26 20:47:45 &{SubID: SubMale:false SubAge:0 JavaClassName:com.ikurento.user.SubInfo}
2020/10/26 20:47:45 connected to localhost:20000!
2020/10/26 20:47:45 connected to localhost:20001!
2020/10/26 20:47:45 try calling interface:com.ikurento.user.UserProvider.GetUser
2020/10/26 20:47:45 with protocol:dubbo
......
......@@ -35,7 +35,7 @@ services:
protocols:
"dubbo":
name: "dubbo"
port: 20000
port: 20001
protocol_conf:
......
./dubbo-go-cli -h=localhost -p=20000 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"
\ No newline at end of file
./dubbo-go-cli -h=localhost -p=20001 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"
\ No newline at end of file
go run . -h=localhost -p=20000 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"
\ No newline at end of file
go run . -h=localhost -p=20001 -proto=dubbo -i=com.ikurento.user.UserProvider -method=GetUser -sendObj="./userCall.json" -recvObj="./user.json"
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment