diff --git a/demo/rpc/dubbo_json_rpc/dubbo_json_client/client.go b/demo/rpc/dubbo_json_rpc/dubbo_json_client/client.go index 466a1eaa5f..fc50352dfc 100644 --- a/demo/rpc/dubbo_json_rpc/dubbo_json_client/client.go +++ b/demo/rpc/dubbo_json_rpc/dubbo_json_client/client.go @@ -44,7 +44,7 @@ func main() { resp, err := cli.InvokeService( ctx, &runtimev1pb.InvokeServiceRequest{ - Id: "com.ikurento.user.UserProvider", + Id: "org.apache.dubbo.samples.UserProvider", Message: &runtimev1pb.CommonInvokeRequest{ Method: "GetUser", ContentType: "", diff --git a/docs/zh/start/rpc/dubbo_json_rpc.md b/docs/zh/start/rpc/dubbo_json_rpc.md index 77ea58ebae..9206c86e38 100644 --- a/docs/zh/start/rpc/dubbo_json_rpc.md +++ b/docs/zh/start/rpc/dubbo_json_rpc.md @@ -15,21 +15,16 @@ go build -o layotto cmd/layotto/main.go 这里使用了`dubbo-go-samples`提供的示例服务 ```sh -git clone git@github.com:apache/dubbo-go-samples.git +git clone git@github.com:apache/dubbo-go-samples.git (f0d1e1076397a4736de080ffb16cd0963c8c2f9d since Sun Mar 20 22:01:12) cd dubbo-go-samples # start zookeeper -cd attachment/go-server -make -f ../../build/Makefile docker-up -cd - +cd rpc/jsonrpc/go-server +docker-compose -f docker/docker-compose.yml up -d -# build dubbo server -cd general/jsonrpc/go-server -sh assembly/mac/dev.sh - -# start dubbo server -cd target/darwin/{generate_folder}/ -sh ./bin/load.sh start +# build && start dubbo server +cd cmd +go run . ``` 4. 通过GPRC接口发起调用